Properly serialize <box-shadow>

This commit is contained in:
Nikita-04 2017-03-22 13:48:55 -04:00 committed by Ravi Shankar
parent d4d8293f22
commit ce7d63bbd5
2 changed files with 23 additions and 4 deletions

View file

@ -29,13 +29,13 @@ ${helpers.predefined_type("opacity",
if self.inset {
try!(dest.write_str("inset "));
}
try!(self.blur_radius.to_css(dest));
try!(dest.write_str(" "));
try!(self.spread_radius.to_css(dest));
try!(dest.write_str(" "));
try!(self.offset_x.to_css(dest));
try!(dest.write_str(" "));
try!(self.offset_y.to_css(dest));
try!(dest.write_str(" "));
try!(self.blur_radius.to_css(dest));
try!(dest.write_str(" "));
try!(self.spread_radius.to_css(dest));
if let Some(ref color) = self.color {
try!(dest.write_str(" "));