Issue #1826 - Support calc() in media queries

This commit is contained in:
Basilisk-Dev 2026-05-05 21:18:24 -04:00 • committed by EAZYBLACK
commit adde59de74
3 changed files with 14 additions and 5 deletions

View file

@ -3998,7 +3998,7 @@ CSSParserImpl::ParseMediaQueryExpression(nsMediaQuery* aQuery)
bool rv = false;
switch (feature->mValueType) {
case nsMediaFeature::eLength:
rv = ParseSingleTokenNonNegativeVariant(expr->mValue, VARIANT_LENGTH,
rv = ParseSingleTokenNonNegativeVariant(expr->mValue, VARIANT_LCALC,
nullptr);
break;
case nsMediaFeature::eInteger: