[csswg-drafts] [css-transitions-1] Clarify/confirm behavior when reparenting a transitioning element

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

== [css-transitions-1] Clarify/confirm behavior when reparenting a transitioning element ==
What steps will reproduce the problem?
(1) Navigate to https://output.jsbin.com/celuzow/quiet
(2) Click start transition.
(3) Click reparent element during the transition.

In Chrome, Firefox and Safari, the transition is immediately finished. In Edge, the transition animation is continued after the element is reparented.

>From the Chrome side we believe the immediate-finish behavior is correct; I just want to make sure that the spec backs this view, and add a WPT test if one doesn't already exist. One argument may be that it is covered by https://drafts.csswg.org/css-transitions/#starting :

> If an element is no longer in the document, implementations must cancel any running transitions on it and remove transitions on it from the completed transitions.

Technically reparenting requires removing the element from its previous parent before setting the new parent. Whether that constitutes being 'no longer in the document' I'm not sure.


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

Received on Friday, 9 November 2018 21:32:41 UTC