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");