LibWeb/CSS: Add support for the lch color function

This makes us pass all `css/css-color/lch-00*.html` tests.
This commit is contained in:
Lucas CHOLLET 2024-10-27 20:19:10 -04:00 committed by Andreas Kling
commit f253246a6c
Notes: github-actions[bot] 2024-10-28 22:38:03 +00:00
5 changed files with 56 additions and 1 deletions

View file

@ -254,6 +254,7 @@ private:
RefPtr<CSSStyleValue> parse_lab_color_value(TokenStream<ComponentValue>&);
RefPtr<CSSStyleValue> parse_oklab_color_value(TokenStream<ComponentValue>&);
Optional<Array<RefPtr<CSSStyleValue>, 4>> parse_lch_like_color_value(TokenStream<ComponentValue>&, StringView);
RefPtr<CSSStyleValue> parse_lch_color_value(TokenStream<ComponentValue>&);
RefPtr<CSSStyleValue> parse_oklch_color_value(TokenStream<ComponentValue>&);
RefPtr<CSSStyleValue> parse_color_function(TokenStream<ComponentValue>&);
RefPtr<CSSStyleValue> parse_color_value(TokenStream<ComponentValue>&);