Re: [csswg-drafts] [css-view-transitions-1] Is "named elements" map in the right order after "capture new state" algorithm? (#9672)

> In "capture new state", there is this step:
> 
> > If namedElements[transitionName] does not [exist](https://infra.spec.whatwg.org/#map-exists), then set namedElements[transitionName] to a new [captured element](https://drafts.csswg.org/css-view-transitions/#captured-element) struct.
> 
> However, it doesn't mention where to insert the element, which means by default we would be adding it at the end of the ordered map. It is the more convenient default to implement, but is this correct? You might expect to want to preserve the paint order or such (slightly more of a pain to do, but possible)
> 
> cc @noamr @khushalsagar @fantasai @tabatkins @vmpstr

The spec says [here](https://drafts.csswg.org/css-view-transitions-1/#capture-the-old-state) that the iteration on elements should be according to paint order.

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


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

Received on Monday, 4 December 2023 10:51:03 UTC