mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-03 17:02:56 +00:00
LibWeb: Don't convert color functions to RGB when resolving color values
This commit is contained in:
parent
02d34dd021
commit
a97fe3123d
Notes:
github-actions[bot]
2025-04-09 11:12:39 +00:00
Author: https://github.com/tcl3
Commit: a97fe3123d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4245
Reviewed-by: https://github.com/AtkinsSJ ✅
5 changed files with 746 additions and 10 deletions
|
@ -176,6 +176,7 @@ public:
|
|||
bool is_color() const { return type() == Type::Color; }
|
||||
CSSColorValue const& as_color() const;
|
||||
CSSColorValue& as_color() { return const_cast<CSSColorValue&>(const_cast<CSSStyleValue const&>(*this).as_color()); }
|
||||
virtual bool is_color_function() const { return false; }
|
||||
|
||||
bool is_color_scheme() const { return type() == Type::ColorScheme; }
|
||||
ColorSchemeStyleValue const& as_color_scheme() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue