mirror of
https://github.com/servo/servo.git
synced 2025-10-17 08:49:21 +01:00
Fix animation serialization 15398 pt2 Fixes animation serialization so that an animation shorthand is serialized only when the value lists have the same length (part of #15398) There are two commits here - the first is a refactoring to update PropertyDeclarationBlock::to_css to match the spec (please see the full commit message for perhaps too many details). The second commit utilizes the changes in the first, and updates the animation serialization itself to write an empty serialization if the longhand value lists have different lengths, as per the original issue. Interestingly, the refactoring of the first commit simplified quite a lot more than the fix for this bug, in particular, the special case of 'overflow' shorthand serialization is handled by default, without the extra special case code (now removed). --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #15398 (github issue number if applicable). - [X] There are tests for these changes OR <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15685) <!-- Reviewable:end --> |
||
---|---|---|
.. | ||
background.mako.rs | ||
border.mako.rs | ||
box.mako.rs | ||
column.mako.rs | ||
font.mako.rs | ||
inherited_svg.mako.rs | ||
inherited_text.mako.rs | ||
list.mako.rs | ||
margin.mako.rs | ||
mask.mako.rs | ||
outline.mako.rs | ||
padding.mako.rs | ||
position.mako.rs | ||
serialize.mako.rs | ||
text.mako.rs |