mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
Issue #1370 - Part 3: Implement content keyword for flex-basis property
Partially based on https://bugzilla.mozilla.org/show_bug.cgi?id=1105111
This commit is contained in:
parent
b6b20a04ec
commit
9dc59c43f1
9 changed files with 63 additions and 8 deletions
|
|
@ -8592,7 +8592,7 @@ CSSParserImpl::ParseFlex()
|
|||
// "a unitless zero that is not already preceded by two flex factors must be
|
||||
// interpreted as a flex factor.
|
||||
if (ParseNonNegativeVariant(tmpVal, flexBasisVariantMask | VARIANT_NUMBER,
|
||||
nsCSSProps::kWidthKTable) != CSSParseResult::Ok) {
|
||||
nsCSSProps::kFlexBasisKTable) != CSSParseResult::Ok) {
|
||||
// First component was not a valid flex-basis or flex-grow value. Fail.
|
||||
return false;
|
||||
}
|
||||
|
|
@ -8641,7 +8641,7 @@ CSSParserImpl::ParseFlex()
|
|||
if (!wasFirstComponentFlexBasis) {
|
||||
CSSParseResult result =
|
||||
ParseNonNegativeVariant(tmpVal, flexBasisVariantMask,
|
||||
nsCSSProps::kWidthKTable);
|
||||
nsCSSProps::kFlexBasisKTable);
|
||||
if (result == CSSParseResult::Error) {
|
||||
return false;
|
||||
} else if (result == CSSParseResult::Ok) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue