alvaromontoro / almond.css

Collection of CSS styles to make simple websites look nicer
MIT License
1.14k stars 35 forks source link

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

Open alvaromontoro opened 1 year ago

alvaromontoro commented 1 year ago

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.