Skip to content

Why use :where(html)? #332

Answered by argyleink
sanbornhilland asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! Thanks for checkin in 🙂

Everything is wrapped in :where() so you as a consumer of the library won't ever have to battle the specificity to overwrite things with your own custom values. The props or normalize load in and don't require any battles, making itself weak instead of strong with specificity. Same with the choice for :where(html), it's just weaker in intention, like good faith towards this being helpful and not intrusive. Really it could be :where(:root) and nothing would change, but yeah, it's the intention of being a subservient library.

Glad you're diggin the lib! <3

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sanbornhilland
Comment options

Answer selected by sanbornhilland
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants