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:
Sneha Sinha 2017-03-05 00:36:42 +05:30 committed by Gurek Singh
parent d8a8e3e42e
commit 30028959b8

View file

@ -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;