Firefox for Web Developers @webdevs.firefox.com · May 20

CSS style() queries landed in Firefox 151 making them newly available across engines. Here's how they work:

156 likes 2 replies

?

Replies

Casey Carroll · May 20

I like how this example shows that style queries lead to less surprises (cascade specificity). I’m struggling with this use case, though. With classes, I would exclusively set the class to normal or warning directly on the banner. Why style a banner with parent and grandparent containers instead?

Firefox for Web Developers · May 20

And here's the full documentation on MDN developer.mozilla.org/en-US/docs/W...