Open emilio opened 2 months ago
It's also unclear what:
At least one anchor() function on query el’s used inset properties in the axis refers...
Really means, since anchor()
is supposed to go away at computed-value time? So if interpreted naively, that condition would never match...
The CSS Working Group just discussed [css-anchor-position-1] Define scroll interaction better.
.
In https://github.com/w3c/csswg-drafts/issues/9598 it was resolved that
anchor()
computed to a pixel value, which ended up in edits in https://drafts.csswg.org/css-anchor-position-1/#scroll and elsewhere such that some scroll adjustment is snapshotted every frame (at an undefined time).That timing should be defined. The spec says:
But before style recalc seems wrong? The scroll position there depends on whether somebody had updated layout before, or otherwise it flickers... Or something like that?
inset
properties to add that offset, so thatdiv.style.left = getComputedStyle(div).left
round-trips? But it is super-weird that the positiongetComputedStyle()
returns depends on whether you're before or after style recalc... wat?I still think it'd be easier if we just didn't do the interleaving dance but... ;)
cc @dshin-moz, @andruud, @tabatkins, @fantasai