W3C home > Mailing lists > Public > public-css-archive@w3.org > April 2019

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

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Fri, 19 Apr 2019 18:18:26 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-484976611-1555697905-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:46 UTC