-
Notifications
You must be signed in to change notification settings - Fork 57
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 tree-scoped at-rule names and references (for @font-face, @keyframes, etc.) #659
Comments
This is being requested for TAG feedback because it is a CSS-wide behavior change (well, behavior definition), and interacts with shadows and their information-hiding/componentization, so want to make sure we're not missing anything wrt platform consistency or other issues. The examples Xiaocheng cites are indeed a great in-depth explanation of the behavior, but in short, the behavior is:
|
@xiaochengh from a multi-stakeholder PoV: from the linked discussion in CSS it looks like Firefox is also implementing. Can you confirm? |
We looked at this during the plenary today and overall we are happy with the direction this is going and think the proposed reference mechanism is intuitive. |
It was only tentative in the sense that if we found any compat constraints due to existing wild behavior, we might need to capture that as a special case. As you can see from the partially-filled-in table at https://wiki.csswg.org/spec/css-scoping, there's zero agreement and a lot of cases simply don't work at all today, but the bits of behavior that do work are largely consistent with the resolved/specified behavior, so most code that works today should probably continue to work. We haven't had a further resolution since that, since compact impact would need to be assessed to go further (and Chrome is gonna be the first to start implementing these behaviors). |
@torgo I've requested for Firefox's position here: mozilla/standards-positions#556 Right now they haven't confirmed yet |
We discussed this in our plenary session today, and overall we're really happy with where this has ended up in terms of the authoring experience. It would be hard to come up with a solution more intuitive to component authors. We note that this may have implementation complexity impact, so we encourage the WG to solicit implementor feedback from engineers familiar with the innards of each of the three engines. |
Ya ya yawm TAG!
I'm requesting a TAG review of CSS tree-scoped at-rule names and references (for @font-face, @Keyframes, etc.).
It has been a long standing issue on how name-defining at-rules (@font-face etc.) should be handled across shadow tree boundaries. The existing behaviors either break shadow tree encapsulation, or do not allow such at-rules in shadow trees at all. They are non-interoperable between browsers, and even inconsistent in the same browser between different rules.
Following a recent CSSWG resolution, a new and reasonable behavior has been proposed. Chromium is planning to implement this new behavior, starting with the @counter-style rule. So I'm requesting a TAG review of this new spec.
Further details:
We'd prefer the TAG provide feedback as (please delete all but the desired option):
💬 leave review feedback as a comment in this issue and @-notify @xiaochengh
The text was updated successfully, but these errors were encountered: