Skip to content
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

Use @layer #26

Open
firefoxic opened this issue May 19, 2024 · 1 comment
Open

Use @layer #26

firefoxic opened this issue May 19, 2024 · 1 comment

Comments

@firefoxic
Copy link

firefoxic commented May 19, 2024

Have you considered replacing the wrapping of selectors in :where() with wrapping the entire library in the @layer normalize?

This would also avoid the specificity affect, but with the same simple selectors.

@romainmenke
Copy link
Member

This also has the benefit of having low priority pseudo element selectors.
Those aren't valid in :where.

https://github.com/csstools/normalize.css/blob/main/normalize.css#L204-L215

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants