Solving container queries today
We all are looking out for the potion which magically let an HTML element adapt based on the dimensions of it’s parent element. Some call it, container queries. Sigh, like all magical stuff it doesn’t exist, at least today.
But, a wizard of the web—Greg Whitworth—in his talk at CSS Day 2018, shows us how to solve the problems using the means available today on the browsers, iframe, modern layouts, Resize Observer and Intersection Observer.