-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSS WG #27
Comments
3118, [css-text-decor-4] Rethinking text-underline-offset 涉及规范:CSS Text Decoration Module Level 4
该提议里提到的问题:
|
Constructable Stylesheet Objects解决的问题一个包含了很多Web组件的网页,可能同一个组件用了多次。但是每个组件却分别有个样式表 大多数组件都用 Shadow DOM,目前是必须向 shadow root 指定一个
之前的解决方案 Shadow Piercing,虽然避免了在每一个 Shadow DOM 里都要一个 style 元素,但是封装性不好了。它现在已经从规范里移除了。 所以本次提议了这个。 简介Constructable Stylesheet Objects 定义了CSSOM的附加功能,使 StyleSheet 对象可以直接构造,也提供了对应的方法和API,以便在自定义元素、相似元素的上下文中,更容易处理样式表。 它提供了一个API,可以在脚本里创建样式表对象,而不需要 style 元素。脚本可以选择 add/remove 规则,从一个 stylesheet object。每一个 stylesheet object 可以被添加到同文档中的任意多个 shadow roots。 使用:
https://discourse.wicg.io/t/proposal-constructable-stylesheet-objects/2572 1月底2月初正式提了一次。Blink 和 Mozilla 很感兴趣 2017年chromium有个bug说 shadow tree 里的 2016年11月4日,(二者的具体区别,未细看) 2016.3.30 在 w3c/webcomponents 报了个 Issue:给自定义元素提供一种轻量的机制来添加样式 |
Spatial Navigation空间导航,使用箭头键移动焦点。不是单纯地用Tab键按顺序导航,而是根据位置来。 目的是将Web技术适普到其它领域,eg.TV, IVI, game console, smart devices, a11y下的PC和mobile。
它能:
其它:
|
CSS Environment VariablesCSS Environment Variables 允许获取和使用 browser- 和 author- 定义的全局变量,比如 typography, color, notch 和其它 specific layout/device 的值。它用在 Media Queries 里。 有人提到说它算是从 cascade 里独立出来 CSS variables,好处是:
CSS Custom Properties 不能和 media queries 和 selectors 一起工作的原因,据说是因为它是 cascade 的,会导致一些很奇怪的无线循环的逻辑。
另,The Notch 缺口,凹槽。就是iphone的刘海。
详见: p.s.
|
Schedule 见 TPAC 2018 / CSS WG
Proposed Agenda
src:local()
font 唯一名字匹配 ambiguous & restricts matched localeIdea
<style>/<link>
里使用 CSSStyleSheets 吗?ED
text-spacing
属性FPWD
ED
共4个The text was updated successfully, but these errors were encountered: