LibWeb/CSS: Correctly serialize the colorspace name of xyz and xyz-d65

This gives us a +40 subtests passes in:
 - css/css-color/parsing/color-valid-color-function.html
This commit is contained in:
Lucas CHOLLET
2024-12-13 16:50:26 -05:00
committed by Sam Atkins
parent 9240d38273
commit 3c60510896
2 changed files with 43 additions and 43 deletions

View File

@@ -51,7 +51,7 @@ StringView string_view_from_color_type(CSSColorValue::ColorType color_type)
if (color_type == CSSColorValue::ColorType::XYZD50)
return "xyz-d50"sv;
if (color_type == CSSColorValue::ColorType::XYZD65)
return "xyz"sv;
return "xyz-d65"sv;
VERIFY_NOT_REACHED();
}