From 68193c365f777ced833b413b5d7a29b54074a73a Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Thu, 22 Jul 2021 14:56:44 +0100 Subject: [PATCH] LibWeb: Resolve CSS text-decoration from value list This detects and resolves these in the text-decoration property, in any order: - text-decoration-color - text-decoration-line - text-decoration-style Only the solid underline renders, but all three sub-properties are assigned correctly. --- Base/res/html/misc/text-decoration.html | 18 ++++ Base/res/html/misc/welcome.html | 1 + .../Libraries/LibWeb/CSS/Identifiers.json | 1 + .../Libraries/LibWeb/CSS/StyleResolver.cpp | 100 ++++++++++++++++-- 4 files changed, 110 insertions(+), 10 deletions(-) create mode 100644 Base/res/html/misc/text-decoration.html diff --git a/Base/res/html/misc/text-decoration.html b/Base/res/html/misc/text-decoration.html new file mode 100644 index 0000000000..3406e82c76 --- /dev/null +++ b/Base/res/html/misc/text-decoration.html @@ -0,0 +1,18 @@ + + + +text-decoration test + + + +

Overline

+

Underline

+

Wombling

+ + + diff --git a/Base/res/html/misc/welcome.html b/Base/res/html/misc/welcome.html index 2cb2a2f11c..8d102c83d7 100644 --- a/Base/res/html/misc/welcome.html +++ b/Base/res/html/misc/welcome.html @@ -48,6 +48,7 @@