Re: [csswg-drafts] [css-anchor-position][css-position] Fixing the animation problem (#9598)

> I think the general handling that's in CSS transitions for style changes that happen in the middle of a transition and change the end state ought to handle that sort of case reasonably.

I agree that as long as the end state of the property being interpolated by the CSS transition is updated when the anchor position changes, it should work. But the model @fantasai was describing had some sort of "reflect"/"override" modes, where in reflect mode the browser is computing the anchor position (using all the fallbacks) as usual. And when the CSS transition is triggered, we switch to an "override" mode where the interpolated position applies until the end of the transition. We don't recompute the anchor position. With this model the anchor position won't retarget until the end of the transition which would be incorrect.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 15 February 2024 17:50:49 UTC