Bug 1350140: Fix computation of border and outline-width when the border or outline style change. r=heycam

MozReview-Commit-ID: FjMS47YNNX8
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
Emilio Cobos Álvarez 2017-03-24 20:19:14 +01:00
parent a6277d5513
commit f61afa15df
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 83 additions and 14 deletions

View file

@ -53,8 +53,9 @@ ${helpers.predefined_type("outline-color", "CSSColor", "computed::CSSColor::Curr
SpecifiedValue::parse(context, input)
.and_then(|result| {
if let Either::Second(BorderStyle::hidden) = result {
// The outline-style property accepts the same values as border-style,
// except that 'hidden' is not a legal outline style.
// The outline-style property accepts the same values as
// border-style, except that 'hidden' is not a legal outline
// style.
Err(())
} else {
Ok(result)