Closed Bug 1254424 Opened 4 years ago Closed 2 years ago
Animations using em-based units should respond to changes in the font-size on the parent
In the attached test case, two elements have a CSS animation that animates the margin-left from '0em' to '10em'. After the first iteration, the font-size is updated. For the green box, the font-size on the element itself is updated. For the red box, the font-size on the parent element is updated. Expected results: After the first iteration both animations start animating "further" to the right, due to the increased font-size. Actual results: Only the green box (the element whose specified style was updated, as opposed to its parent's) updates its animation. However, some actions such as opening DevTools inspector can cause the red box to suddenly update. This is a subset of the work needed to bring our CSS animations implementation into line with the behavior resolved by the CSS WG regarding liveness but which has yet to be edited into the spec. Bug 1245748 should make us start storing the specified values so that we can re-resolve them into (computed) StyleAnimationValues when we detect a situation where the meaning of context-sensitive values might have changed.  https://lists.w3.org/Archives/Public/www-style/2015Oct/0226.html item 1a  https://github.com/w3c/csswg-drafts/issues/66
Note that in stylo this bug will be fixed by bug 1350754.
Marking as part of documentation plan for intentional stylo differences
Closing this works as expected on our new style system (i.e. stylo), and we already dropped the old style system.
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.