W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2018

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

From: Stephen McGruer via GitHub <sysbot+gh@w3.org>
Date: Fri, 09 Nov 2018 21:32:40 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-379329233-1541799158-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:39 UTC