Solving container queries today

We all are look­ing out for the po­tion which ma­gic­ally let an HTML ele­ment ad­apt based on the di­men­sions of it’s par­ent ele­ment. Some call it, container queries. Sigh, like all ma­gical stuff it does­n’t ex­ist, at least today.

But, a wiz­ard of the web – Greg Whit­worth – in his talk at CSS Day 2018, shows us how to solve the prob­lems us­ing the means avail­able today on the browsers, iframe, mod­ern lay­outs, Res­ize Ob­server and In­ter­sec­tion Ob­server.

Greg Whitworth, ‘Solving container queries today’, CSS Day 2018

Do you have any thoughts on this art­icle? Write to me.