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 :where() for attribute and complex selectors #76

Open
alvaromontoro opened this issue Jan 21, 2023 · 0 comments
Open

Use :where() for attribute and complex selectors #76

alvaromontoro opened this issue Jan 21, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@alvaromontoro
Copy link
Owner

Is your feature request related to a problem? Please describe.

Some rules include attribute selectors with the same weight as a class. We need to keep the specificity of those selectors lower so they don't interfere with the user's selectors.

Describe the solution you'd like

Use :where() in the needed selectors.

Describe alternatives you've considered

An alternative would be using :is(), but then the content would still count for specificity.

Additional context

:where() is not supported by IE. This will be a breaking change.

@alvaromontoro alvaromontoro added the enhancement New feature or request label Jan 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant