diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2017-08-17 20:34:01 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-03-12 08:40:14 +0100 |
commit | 505edf1ba4f6907c236b4876eefea606fa7b9cd0 (patch) | |
tree | 0404fa33ac7f64a995115f38a580df5cd4d15166 /layout/style/nsCSSParser.cpp | |
parent | 017797de494cffd76e31e62dbec3234ecabfb75b (diff) | |
download | UXP-505edf1ba4f6907c236b4876eefea606fa7b9cd0.tar UXP-505edf1ba4f6907c236b4876eefea606fa7b9cd0.tar.gz UXP-505edf1ba4f6907c236b4876eefea606fa7b9cd0.tar.lz UXP-505edf1ba4f6907c236b4876eefea606fa7b9cd0.tar.xz UXP-505edf1ba4f6907c236b4876eefea606fa7b9cd0.zip |
[draft] CSS - linear-gradient - zero (0) angle value without degree unit is not correctly interpreted
Diffstat (limited to 'layout/style/nsCSSParser.cpp')
-rw-r--r-- | layout/style/nsCSSParser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/layout/style/nsCSSParser.cpp b/layout/style/nsCSSParser.cpp index cd996230e..b361cf0c2 100644 --- a/layout/style/nsCSSParser.cpp +++ b/layout/style/nsCSSParser.cpp @@ -10404,7 +10404,8 @@ CSSParserImpl::ParseLinearGradient(nsCSSValue& aValue, UngetToken(); // <angle> , - if (ParseSingleTokenVariant(cssGradient->mAngle, VARIANT_ANGLE, nullptr) && + if (ParseSingleTokenVariant(cssGradient->mAngle, + VARIANT_ANGLE_OR_ZERO, nullptr) && !ExpectSymbol(',', true)) { SkipUntil(')'); return false; |