mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Serialize spread in shadow conditionally.
This commit is contained in:
parent
828665a6af
commit
e659fa6c23
2 changed files with 9 additions and 5 deletions
|
@ -888,9 +888,10 @@ impl ToCss for Shadow {
|
|||
self.offset_y.to_css(dest)?;
|
||||
dest.write_str(" ")?;
|
||||
self.blur_radius.to_css(dest)?;
|
||||
dest.write_str(" ")?;
|
||||
self.spread_radius.to_css(dest)?;
|
||||
|
||||
if self.spread_radius != Length::zero() {
|
||||
dest.write_str(" ")?;
|
||||
self.spread_radius.to_css(dest)?;
|
||||
}
|
||||
if let Some(ref color) = self.color {
|
||||
dest.write_str(" ")?;
|
||||
color.to_css(dest)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue