Open
Bug 1790150
Opened 2 years ago
Updated 2 years ago
Make ResizeObserver timing (and refresh driver timing more generally) a bit more explicit.
Categories
(Core :: Layout, task, P3)
Core
Layout
Tracking
()
NEW
People
(Reporter: emilio, Unassigned)
References
Details
Attachments
(1 file)
Right now ResizeObserverController runs as a refresh driver Display
observer, which means it runs after flushing layout, but ordering is not super clear. It might be worth implementing something a bit more explicit, like e.g., IntersectionObserver does.
Reporter | ||
Comment 1•2 years ago
|
||
Reporter | ||
Comment 2•2 years ago
|
||
Olli, wdyt about something along the lines of comment 1?
This is still fairly orange, I need to fix up a couple things that are known broken, but the general idea is there. This should be easier to follow and also match the HTML spec more closely, wdyt?
Flags: needinfo?(smaug)
Comment 3•2 years ago
|
||
What is the reason to not do explicit style flushes anymore?
Flags: needinfo?(smaug)
Reporter | ||
Comment 4•2 years ago
|
||
Because style flushes that actually change stuff trigger layout flushes or painting, and layout flushes also flush style.
You need to log in
before you can comment on or make changes to this bug.
Description
•