Closed
Bug 1254424
Opened 9 years ago
Closed 7 years ago
Animations using em-based units should respond to changes in the font-size on the parent
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
WONTFIX
Tracking | Status | |
---|---|---|
firefox48 | --- | affected |
People
(Reporter: birtles, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
1.20 KB,
text/html
|
Details |
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[1] but which has yet to be edited into the spec[2].
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.
[1] https://lists.w3.org/Archives/Public/www-style/2015Oct/0226.html item 1a
[2] https://github.com/w3c/csswg-drafts/issues/66
Comment 1•8 years ago
|
||
Note that in stylo this bug will be fixed by bug 1350754.
Updated•7 years ago
|
Blocks: stylo-behavior-changes
Comment 2•7 years ago
|
||
Marking as part of documentation plan for intentional stylo differences
Keywords: dev-doc-needed
Comment 3•7 years ago
|
||
Documented:
https://developer.mozilla.org/en-US/docs/Web/CSS/animation#Quantum_CSS_notes
https://developer.mozilla.org/en-US/docs/Web/CSS/font-size#Quantum_CSS_notes
https://developer.mozilla.org/en-US/Firefox/Releases/57#Quantum_CSS_notes
Keywords: dev-doc-needed → dev-doc-complete
Comment 4•7 years ago
|
||
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: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•