From 30028959b8a23afac15f9fb0b8f7443d39c069ae Mon Sep 17 00:00:00 2001 From: Sneha Sinha Date: Sun, 5 Mar 2017 00:36:42 +0530 Subject: [PATCH] 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 --- components/style/properties/shorthand/border.mako.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/style/properties/shorthand/border.mako.rs b/components/style/properties/shorthand/border.mako.rs index a215cf89136..7f48a74ff9d 100644 --- a/components/style/properties/shorthand/border.mako.rs +++ b/components/style/properties/shorthand/border.mako.rs @@ -246,7 +246,12 @@ pub fn parse_border(context: &ParserContext, input: &mut Parser) try!(input.expect_delim('/')); border_image_outset::parse(context, input) }).ok(); - Ok((w, o)) + if w.is_none() && o.is_none() { + Err(()) + } + else { + Ok((w, o)) + } }); if let Ok((w, o)) = maybe_width_outset { width = w;