Use Cases and Requirements for Element Queries

Avatar of Chris Coyier
Chris Coyier on (Updated on )

DigitalOcean joining forces with CSS-Tricks! Special welcome offer: get $100 of free credit.

This is a perfect example of making a case for new language features. Not just a vague “element queries! that would be awesome!” but laying out a real-world scenario, what we have to do to achieve it now, and why that’s not ideal. Of course there are big challenges (see this and this) but those debates can be held elsewhere and not muddy the “why we need it” explanation.

Direct Link →