mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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
|
@ -9,6 +9,7 @@ use context::QuirksMode;
|
|||
use euclid::size::Size2D;
|
||||
use font_metrics::FontMetricsProvider;
|
||||
use media_queries::Device;
|
||||
use num_traits::Zero;
|
||||
#[cfg(feature = "gecko")]
|
||||
use properties;
|
||||
use properties::{ComputedValues, StyleBuilder};
|
||||
|
@ -494,8 +495,10 @@ impl ToCss for Shadow {
|
|||
dest.write_str(" ")?;
|
||||
self.blur_radius.to_css(dest)?;
|
||||
dest.write_str(" ")?;
|
||||
self.spread_radius.to_css(dest)?;
|
||||
dest.write_str(" ")?;
|
||||
if self.spread_radius != Au::zero() {
|
||||
self.spread_radius.to_css(dest)?;
|
||||
dest.write_str(" ")?;
|
||||
}
|
||||
self.color.to_css(dest)?;
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue