LibWeb/CSS: Add support for the a98-rgb color space in color()

This makes us pass the following WPT tests:
 - css/css-color/a98rgb-001.html
 - css/css-color/a98rgb-002.html
 - css/css-color/a98rgb-003.html
 - css/css-color/a98rgb-004.html
 - css/css-color/predefined-007.html
 - css/css-color/predefined-008.html
This commit is contained in:
Lucas CHOLLET 2024-11-13 23:17:40 -05:00 committed by Andreas Kling
commit a59d9a3986
Notes: github-actions[bot] 2024-11-16 09:31:06 +00:00
13 changed files with 146 additions and 1 deletions

View file

@ -182,6 +182,7 @@ public:
return Color(r_u8, g_u8, b_u8, a_u8);
}
static Color from_a98rgb(float r, float g, float b, float alpha = 1.0f);
static Color from_lab(float L, float a, float b, float alpha = 1.0f);
static Color from_xyz50(float x, float y, float z, float alpha = 1.0f);
static Color from_xyz65(float x, float y, float z, float alpha = 1.0f);