mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
CSS - Grid - fit-content unexpectedly reserves space for full clamp size in repeat()
This commit is contained in:
parent
4ba6ca9106
commit
622832ae39
2 changed files with 9 additions and 0 deletions
|
|
@ -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() &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue