From 6b938c48a5cd19e648d41315c5fcd2cfd47efd6e Mon Sep 17 00:00:00 2001 From: erixreyes Date: Sat, 19 Jul 2025 12:13:58 +0800 Subject: [PATCH] Issue #2489: Include color-mix to avoid filtering --- layout/style/nsCSSParser.cpp | 3 ++- layout/style/nsCSSValue.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/layout/style/nsCSSParser.cpp b/layout/style/nsCSSParser.cpp index fdb9df8411..56fb2c39d3 100644 --- a/layout/style/nsCSSParser.cpp +++ b/layout/style/nsCSSParser.cpp @@ -8650,7 +8650,8 @@ CSSParserImpl::ParseVariant(nsCSSValue& aValue, (tk->mIdent.LowerCaseEqualsLiteral("rgb") || tk->mIdent.LowerCaseEqualsLiteral("hsl") || tk->mIdent.LowerCaseEqualsLiteral("rgba") || - tk->mIdent.LowerCaseEqualsLiteral("hsla")))) + tk->mIdent.LowerCaseEqualsLiteral("hsla") || + tk->mIdent.LowerCaseEqualsLiteral("color-mix")))) { // Put token back so that parse color can get it UngetToken(); diff --git a/layout/style/nsCSSValue.h b/layout/style/nsCSSValue.h index 680e26732a..4282d55375 100644 --- a/layout/style/nsCSSValue.h +++ b/layout/style/nsCSSValue.h @@ -804,7 +804,7 @@ public: MOZ_ASSERT(mUnit == eCSSUnit_ComplexColor); return mValue.mComplexColor->ToComplexColor(); } - + Array* GetArrayValue() const { MOZ_ASSERT(UnitHasArrayValue(), "not an array value");