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;