mirror of
https://github.com/servo/servo.git
synced 2025-07-03 13:33:39 +01:00
style: Fix the serialization order for the text-decoration shorthand to match the canonical order in the spec
Differential Revision: https://phabricator.services.mozilla.com/D124536
This commit is contained in:
parent
f063308e33
commit
d299040d55
1 changed files with 7 additions and 7 deletions
|
@ -88,6 +88,13 @@
|
||||||
has_value = true;
|
has_value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !is_auto_thickness {
|
||||||
|
if has_value {
|
||||||
|
dest.write_str(" ")?;
|
||||||
|
}
|
||||||
|
self.text_decoration_thickness.to_css(dest)?;
|
||||||
|
}
|
||||||
|
|
||||||
% if engine == "gecko":
|
% if engine == "gecko":
|
||||||
if !is_solid_style {
|
if !is_solid_style {
|
||||||
if has_value {
|
if has_value {
|
||||||
|
@ -104,13 +111,6 @@
|
||||||
self.text_decoration_color.to_css(dest)?;
|
self.text_decoration_color.to_css(dest)?;
|
||||||
has_value = true;
|
has_value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if !is_auto_thickness {
|
|
||||||
if has_value {
|
|
||||||
dest.write_str(" ")?;
|
|
||||||
}
|
|
||||||
self.text_decoration_thickness.to_css(dest)?;
|
|
||||||
}
|
|
||||||
% endif
|
% endif
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue