3 ms·
For anyone curious, there are a ton of selectors here that you may have never heard of before here: https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-clas
by cyral 4y ago
For anyone curious, there are a ton of selectors here that you may have never heard of before here: https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-clas...
- clairity 4y agowhile 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