Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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...


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.


I don't think I've ever been excited for a CSS feature as much as I am for `:has` and `:where`!





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: