3 ms·
while many of those other pseudo-classes are useful, :has() is a next level of usefulness, as are :is()/:where() and :not(). combining these together gives you
by clairity 4y ago
while many of those other pseudo-classes are useful, :has() is a next level of usefulness, as are :is()/:where() and :not(). combining these together gives you far-reaching selector capabilities.
safari also now has lch colors and the color() function, which make theming more flexible.
and the color-contrast() function just landed in firefox beta!
edit: subgrid in firefox is pretty nifty too.
- Klathmon 4y agoI don't think I've ever been excited for a CSS feature as much as I am for `:has` and `:where`!
- CharlesW 4y agoFor anyone else who's never heard of these before: https://developer.mozilla.org/en-US/docs/Web/CSS/:has https://developer.mozilla.org/en-US/docs/Web/CSS/:has https://developer.mozilla.org/en-US/docs/Web/CSS/:where https://developer.mozilla.org/en-US/docs/Web/CSS/:where