AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
How Style Queries Relate to Container Queries
The first version of style queries that has shipped right now is the ability for you to query a custom properties value just like you would the viewport. It will eventually be more than this though where you can literally say, well, what's the color of the text? If the text is black, then I want a background of white. Those are the be the style queries there. And then coming after that is state queries, which was just on topic this morning. Like is there a scroll bar present? Is it snapped? Is this element snapped?"