W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2020

Re: [csswg-drafts] [css-transforms-1] [css-transitions-1] Strange behavior with `insertBefore` vs `appendChild` and transitions (#5334)

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Sun, 19 Jul 2020 20:47:04 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-660706589-1595191623-sysbot+gh@w3.org>
See #3309. When you use `appendChild` or `insertBefore`, the node is temporarily taken out of the tree, and thus the transition is cancelled. Thus in you 1st code you are cancelling the transitions for all the elements, while in the 2nd one only for `elem1` and `elem2`. `elem0` and `elem3` are choppy, I guess that's the reason, but I'm not an expert.

GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5334#issuecomment-660706589 using your GitHub account
Received on Sunday, 19 July 2020 20:47:06 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:11 UTC