Re: [csswg-drafts] [css-conditional] Applying styles based on an elements size (@media for elements) (#3852)

Thanks for the issue!

Container queries / element queries have been discussed in this group for quite a while. The fundamental issue with them is that they're [selectors that depend on layout](https://wiki.csswg.org/faq#selectors-that-depend-on-layout), and so they're fundamentally cyclical in a way that can't be supported without complicated hacky business.

ResizeObserver, by placing itself outside of the CSS layout engine and putting the responsibility of handling cyclic changes on the author, is the current best solution to this sort of thing.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3852#issuecomment-484976611 using your GitHub account

Received on Friday, 19 April 2019 18:18:27 UTC