diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2017-08-17 20:30:45 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-03-12 08:39:41 +0100 |
commit | 017797de494cffd76e31e62dbec3234ecabfb75b (patch) | |
tree | 6814a1154a77828760caad13780f66fb47d50ac5 /layout/style/nsCSSParser.cpp | |
parent | b736f53a13af48de08026b7c7e64275122af66e2 (diff) | |
download | UXP-017797de494cffd76e31e62dbec3234ecabfb75b.tar UXP-017797de494cffd76e31e62dbec3234ecabfb75b.tar.gz UXP-017797de494cffd76e31e62dbec3234ecabfb75b.tar.lz UXP-017797de494cffd76e31e62dbec3234ecabfb75b.tar.xz UXP-017797de494cffd76e31e62dbec3234ecabfb75b.zip |
CSS - Grid - fit-content unexpectedly reserves space for full clamp size in repeat()
Diffstat (limited to 'layout/style/nsCSSParser.cpp')
-rw-r--r-- | layout/style/nsCSSParser.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/layout/style/nsCSSParser.cpp b/layout/style/nsCSSParser.cpp index 1108ce5b5..cd996230e 100644 --- a/layout/style/nsCSSParser.cpp +++ b/layout/style/nsCSSParser.cpp @@ -8918,6 +8918,10 @@ CSSParserImpl::ParseGridTrackSize(nsCSSValue& aValue, return CSSParseResult::NotFound; } if (mToken.mIdent.LowerCaseEqualsLiteral("fit-content")) { + if (requireFixedSize) { + UngetToken(); + return CSSParseResult::Error; + } nsCSSValue::Array* func = aValue.InitFunction(eCSSKeyword_fit_content, 1); if (ParseGridTrackBreadth(func->Item(1)) == CSSParseResult::Ok && func->Item(1).IsLengthPercentCalcUnit() && |