Safari Technology Preview includes support for the :has() pseudo-class. It allows us to style an element based on its descendants. Bramus uses it in his post to show or hide a warning message. He’s also experimenting with form styling, including styling labels based on the validity of their inputs.

•1m read time•From css-irl.info
Post cover image
2 Comments

Sort: