mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Fix serialization for -moz-outline-radius
This commit is contained in:
parent
ea20bd6f63
commit
7bda39aa2e
1 changed files with 7 additions and 11 deletions
|
@ -68,6 +68,7 @@
|
|||
for corner in ['topleft', 'topright', 'bottomright', 'bottomleft']
|
||||
)}" products="gecko" spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-outline-radius)">
|
||||
use properties::shorthands;
|
||||
use values::specified::basic_shape::serialize_radius_values;
|
||||
|
||||
pub fn parse_value(context: &ParserContext, input: &mut Parser) -> Result<Longhands, ()> {
|
||||
// Re-use border-radius parsing.
|
||||
|
@ -80,19 +81,14 @@
|
|||
})
|
||||
}
|
||||
|
||||
// TODO: Border radius for the radius shorthand is not implemented correctly yet
|
||||
impl<'a> ToCss for LonghandsToSerialize<'a> {
|
||||
fn to_css<W>(&self, dest: &mut W) -> fmt::Result where W: fmt::Write {
|
||||
try!(self._moz_outline_radius_topleft.to_css(dest));
|
||||
try!(write!(dest, " "));
|
||||
|
||||
try!(self._moz_outline_radius_topright.to_css(dest));
|
||||
try!(write!(dest, " "));
|
||||
|
||||
try!(self._moz_outline_radius_bottomright.to_css(dest));
|
||||
try!(write!(dest, " "));
|
||||
|
||||
self._moz_outline_radius_bottomleft.to_css(dest)
|
||||
serialize_radius_values(dest,
|
||||
&self._moz_outline_radius_topleft.0,
|
||||
&self._moz_outline_radius_topright.0,
|
||||
&self._moz_outline_radius_bottomright.0,
|
||||
&self._moz_outline_radius_bottomleft.0,
|
||||
)
|
||||
}
|
||||
}
|
||||
</%helpers:shorthand>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue