Loading tutorials
:is() and :where() depend on it.2 min read:is().2 min read:is() and :where() match the same elements. They differ only in th2 min read:is() to the repetition that builds up in real stylesheets.2 min read:where() matches the same elements as :is() but adds nothing to specificity. Here you will use that property to write base styles that other rules can override without a figh3 min read:is() and :where() match the same elements. They differ only in the specificity they contribute. Here you will turn that difference into a decision rule.2 min read:is() and :where().2 min read:is() and :where() for simple grouping. Both pseudo-classes are safe to use, but a few rules catch people out. Most of them fail silently, so you see no error and the style just doesn't apply.2 min read:is() and :where(), how specificity is calculated, and the basics of selector lists. It also assumes you have seen CSS nesting, where a rule is written inside another rule.2 min read:is() and :where() differ in specificity. :not() and :has() follow the :is() rule, so what you learned there carries over.2 min read:where() contributes zero specificity, and how the cascade orders declarations. It compares :where() with cascade layers as two ways to keep default styles easy to override.3 min read:is() and :where() work and how specificity is calculated. It covers which browsers support them, which older names existed, and how to write safe fallbacks if you still need them.2 min read