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

An issue with (2) is how to do the cycle detection.  If you separate the `ResizeObserver` work that triggers this from other `ResizeObserver` JS code (in separate flushes of style and layout), then it seems plausible, but doing that separation seems like it would have a substantial performance cost if both are in use.  (Or are you referring to an existing cycle-detection mechanism?  I don't see the word "cycle" in the [`ResizeObserver` spec](https://drafts.csswg.org/resize-observer-1/).)  Without that separation it's harder to see how you distinguish cycles from JS code doing things.

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

Received on Saturday, 18 May 2019 00:43:56 UTC