mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
border-image no more accepting shorthand values
Fixes #15770 Added a check in border.mako.rs, if w and o are not none before returning Ok status
This commit is contained in:
parent
d8a8e3e42e
commit
30028959b8
1 changed files with 6 additions and 1 deletions
|
@ -246,7 +246,12 @@ pub fn parse_border(context: &ParserContext, input: &mut Parser)
|
|||
try!(input.expect_delim('/'));
|
||||
border_image_outset::parse(context, input)
|
||||
}).ok();
|
||||
if w.is_none() && o.is_none() {
|
||||
Err(())
|
||||
}
|
||||
else {
|
||||
Ok((w, o))
|
||||
}
|
||||
});
|
||||
if let Ok((w, o)) = maybe_width_outset {
|
||||
width = w;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue