[csswg-drafts] [css-view-transitions] Broken state management in "capture the old state" (#11058)

emilio has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-view-transitions] Broken state management in "capture the old state" ==
https://drafts.csswg.org/css-view-transitions-1/#capture-old-state-algorithm has:

> For each element of every element that is connected, and has a node document equal to document, in paint order:
> [...]
> * If usedTransitionNames [contains](https://infra.spec.whatwg.org/#list-contain) transitionName, then return failure.
> [...]
> * Set element's "captured in a view transition" to true.
> * Append element to captureElements.

Note in particular that, if we take the failure path, any previous `element` that has the "captured in a view transition" bit to true doesn't end up in `namedElements`, which means that that bit isn't cleaned-up at all afterwards. That seems wrong? cc @khushalsagar @noamr 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11058 using your GitHub account


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

Received on Monday, 21 October 2024 15:58:44 UTC