From b352a6b59d5deb10fb1a29b0b521439b3823e7e3 Mon Sep 17 00:00:00 2001 From: FalseHonesty Date: Mon, 25 May 2020 14:54:27 -0400 Subject: [PATCH] LibWeb: Implement vendor specific CSS color style for System Palette Add "-libweb-palette-foo-bar" CSS color properties to allow CSS to style itself using the currently selected System Theme. --- Base/home/anon/www/palette.html | 9 ++ Base/home/anon/www/welcome.html | 1 + Libraries/LibWeb/CSS/StyleValue.cpp | 225 +++++++++++++++++++++++++- Libraries/LibWeb/CSS/StyleValue.h | 54 +++++++ Libraries/LibWeb/Parser/CSSParser.cpp | 118 ++++++++++++++ 5 files changed, 406 insertions(+), 1 deletion(-) create mode 100644 Base/home/anon/www/palette.html diff --git a/Base/home/anon/www/palette.html b/Base/home/anon/www/palette.html new file mode 100644 index 00000000000..2fe2551021b --- /dev/null +++ b/Base/home/anon/www/palette.html @@ -0,0 +1,9 @@ + + + + System palette css test + + +

All of my text should be the identifier color

+ + diff --git a/Base/home/anon/www/welcome.html b/Base/home/anon/www/welcome.html index adb12f2f037..4a7fa634ce5 100644 --- a/Base/home/anon/www/welcome.html +++ b/Base/home/anon/www/welcome.html @@ -28,6 +28,7 @@ span#ua {

Your user agent is:

Some small test pages: