-
Notifications
You must be signed in to change notification settings - Fork 27
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
@font-face and @property constructs in Shadow Roots #212
Comments
I can't understand what this means? |
@gsnedders here's a demo to, hopefully, clarify: https://codepen.io/nolanlawson-the-selector/pen/MWVeLVV As you see, while the component is attempting to fully encapsulate everything about delivering it, including the fonts to use, this process only works in Safari at current. Other browsers ignore the Other APIs managed with the |
This comment was marked as outdated.
This comment was marked as outdated.
https://drafts.csswg.org/css-scoping/#shadow-names I think? |
And while not one of the at-rules mentioned, these tests cover One could probably make some largely derivative tests of those for |
And to be explicit: I think we should consider this proposal to cover "at-rules that define global names", rather than specifically |
@gsnedders can you work with @Westbrook to update the issue description if you want to expand the focus? |
To be clear, I think we should just test the at-rules that define global names which are supported; I don't think we should require every browser to implement |
Did everyone agree in a consistent model for this? |
Ah current spec text is https://drafts.csswg.org/css-scoping/#shadow-names which is mentioned above indeed. In general, fixing this up is sensible, and the spec seems reasonable. |
Grepping WPT for "shadow-names" I found these tests: There aren't any tests including "font-face" in css/css-scoping/ in WPT, so I guess that's untested. |
https://drafts.csswg.org/css-scoping/#shadow-names doesn't mention
I suspect that makes https://bugs.chromium.org/p/chromium/issues/detail?id=1231135 invalid, but I've asked to confirm. |
Thank you for proposing We wanted to let you know that this proposal was not selected to be part of Interop this year. We had many strong proposals, and could not accept them all. As discussed in the issue comments, we could not find any tests for For an overview of our process, see the proposal selection summary. Thank you again for contributing to Interop 2023! Posted on behalf of the Interop team. |
Description
Whether it is
@font-face
or@property
, an intersection of confusing spec'ing and partial implementation leaves a number of nice capabilities out of reach of shadow root users. Placing@font-face
or@property
within shadow roots is ignored in some browsers degrading the experience of pre-packaged web components cross browser. This is an area where WPT could also be leveraged to support not falling into this same trap with other and future@
sigil based CSS APIs.@font-face
@Property
Rationale
The code needed to packages a custom element for reuse should be usage within the custom element package.
Specification
w3c/csswg-drafts#1995
Tests
No response
The text was updated successfully, but these errors were encountered: