Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow animations to run for display:none elements.
If a `layoutPositions()` animation is cancelled for a `display:none` node, then its animation promise will not resolve. That prevents `layoutstop` from being emitted. While it doesn't provide much value to animate the style properties of an element when it's invisible, it may make sense for some use cases to animate its position. Allowing animations on invisible elements also has the benefit of resolving this issue in a simple way. The downside is that you lose some performance when you ask the library to animate invisible elements to no visual effect (#1522). Then again, you get exactly what you ask for. Refs. : Backport 3.14.x : layoutstop event not triggered when a node is not displayed #2700 #2693
- Loading branch information