Post #2375679
2023-01-05 05:16 UTC
@ollicle@mastodon.social Yes! html can be a container, for everything! And I recommend it. :)
We couldn't make it the default because it could break some old sites: https://codepen.io/miriamsuzanne/pen/gOjwygB
But people shouldn't rely on that propagation behavior, anyway.
Container queries on html have several advantages over media queries. In addition to var(), relative units in the query (like ems) are also be resolved on the container. No more "browser default em" calculations in queries!
Replies (1)
-
@ollicle@mastodon.social 2023-01-05 06:16
@mia@front-end.social ooh, this is big! Also small, and all the other sizes!