Open lilles opened 2 months ago
The CSS Working Group just discussed [css-conditional][css-anchor-position][scroll-animations] Snapshotting post-layout State
, and agreed to the following:
RESOLVED: run snapshot post-layout state steps
RESOLVED: add it to cssom-view
Still needs edits for scroll-animations and css-anchor-position.
Multiple CSS specifications now rely on post layout state, like scroll state, for doing style and layout:
The current state on the spec and implementation side:
The two-stage snapshotting happens to avoid a first rendering where there is one frame without a snapshot, since there is no previous frame, with a second frame that applies the state from the first frame, leading to flicker for the first rendering.
Instead of having multiple specs describing when this snapshotting happens, and how it interacts with the HTML spec, we could introduce common spec steps for doing post-layout state snapshots.