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

> If an element is no longer in the document or is assigned a different parent node...

Firefox and Chromium finish the transition even if the parent node is the same, and even if the node ends up at the same place (e.g. if you use `appendChild` but the node is already the last child).

I guess the relevant step is https://dom.spec.whatwg.org/#concept-node-adopt

> 2. If node’s parent is not null, remove node from its parent.

So the element is temporarily 'no longer in the document', even if it's inserted back into the document immediately after.

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

Received on Saturday, 10 November 2018 21:55:48 UTC