CSS Bits

CSS Saves for Later Use

Search

The new CSS pseudo-classes explained - :is() :where() :has()

:has() should be called what it really is, a conditional selector/rule. It is even easier to explain as that. The rule only works if the condition inside is met.
⚠️ :has() still has flag in Firefox at atm (May-29-2023):
https://developer.mozilla.org/en-US/docs/Web/CSS/:has
Video by @kevinpowell