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)

task

Tracking

()

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.

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)

What is the reason to not do explicit style flushes anymore?

Flags: needinfo?(smaug)

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.

Attachment

General

Created:
Updated:
Size: