
Media Queries Are Not The Answer: Element Query Polyfill
If you ever wanted to create reusable modules that can be placed into differently sized containers, you’ve probably found that media queries aren’t really enough. What you’d actually need in this case are element queries. Element queries, in contrast to media queries adapt elements based on their containers’ size, not based on the viewport’s size. You’ll be happy to hear that work on element queries has already started (although only as a JavaScript polyfill at the moment). I for one am looking forward to this.








