mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibWeb/CSS: Add support for the display-p3
color space in color()
This color space is often used as a reference in WPT tests, having support for it makes us pass 15 new tests: - css/css-color/display-p3-001.html - css/css-color/display-p3-002.html - css/css-color/display-p3-003.html - css/css-color/display-p3-004.html - css/css-color/display-p3-005.html - css/css-color/display-p3-006.html - css/css-color/lab-008.html - css/css-color/lch-008.html - css/css-color/oklab-008.html - css/css-color/oklch-008.html - css/css-color/predefined-005.html - css/css-color/predefined-006.html - css/css-color/xyz-005.html - css/css-color/xyz-d50-005.html - css/css-color/xyz-d65-005.html
This commit is contained in:
parent
f949334a9a
commit
596a4e55dd
Notes:
github-actions[bot]
2024-11-16 09:30:55 +00:00
Author: https://github.com/LucasChollet
Commit: 596a4e55dd
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2374
17 changed files with 216 additions and 1 deletions
|
@ -183,6 +183,7 @@ public:
|
|||
}
|
||||
|
||||
static Color from_a98rgb(float r, float g, float b, float alpha = 1.0f);
|
||||
static Color from_display_p3(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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue