-
Notifications
You must be signed in to change notification settings - Fork 10
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 Cascade Layers support #50
Comments
I see a possible way to support CSS Layers as follows:
If PR with this feature would be welcome, I'd be happy to work on it 🙂 |
Absolutely correct
Yes please, my capacity is quite limited now. I even answering to issues a couple of days late 😿 |
This was referenced Sep 15, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Relates to #26
Hello and thank you for the awesome library! 👋
Since CSS Cascade Layers support is gettng better in the browsers, i was wondering if there any plans to support this feature?
Right now it seems to be not supported:
I wrote some snapshot tests and current version of
used-styles
just adds all@layer
-related stuff into the critiical styles without considering, if any of styles in that layer are actually usedSo it looks like that some special handling, like it is done for
@media
rules, is needed 🤔There is a polyfill for CSS Layers and it does work much better with
used-styles
, but since this feature is getting wider support in the browsers (90% according to caniuse), i think, it is a good time to introduce a native supportCSS Layers are pretty cool, since by using it
which is basically a native CSS solution to issue #26
What do you think?
The text was updated successfully, but these errors were encountered: