The CSS Podcast cover image

61 :has()

The CSS Podcast

00:00

Querying With Has Is Really Cool, Right?

You can change a form group or the whole form itself based on that state of some of its children. These are form element states that CSS knows about. And it's a great way to kind of look at your entire pages, the whole and style of the body. Another great example from that article is menu expansion.

Play episode from 05:22
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app