When an animation is newly created while the same property transition is running, the transition style rule persists until we call RequestRestyle() for transitions level. That means if user calls getComputedStyle for the property right after creating animation, the style obtained by getComputedStyle still included the transitions level rule. As a result, the transitions level style overrides newly created animation style until the next normal restyling process happens (i.e. process transition level restyle request). Vice versa, in the case where an animation is removed, transitions level style does not appear until the next normal restyling. This patch fixes this problem by trigerring a resyle of the transitions level when an animation is created or removed. MozReview-Commit-ID: HY6amLmDHTi
4.4 KiB
4.4 KiB