1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09:27:35 +00:00

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.
This commit is contained in:
Sam Atkins 2021-07-22 14:56:44 +01:00 committed by Andreas Kling
parent 29b61123a4
commit 68193c365f
4 changed files with 110 additions and 10 deletions

View file

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<title>text-decoration test</title>
<style>
.overline { text-decoration: wavy blue overline; }
.underline { text-decoration: double red underline; }
.strikethrough { text-decoration: dotted green line-through; }
.blink { text-decoration: blink; }
</style>
</head>
<body>
<p class="overline">Overline</p>
<p class="underline">Underline</p>
<p class="strikethrough">Wombling</p>
<p class="blink">FREE!</p>
</body>
</html>

View file

@ -48,6 +48,7 @@
<ul>
<li><a href="justify-content.html">Flexbox justify-content</a></li>
<li><a href="lists.html">Lists</a></li>
<li><a href="text-decoration.html">Text-decoration</a></li>
<li><a href="fonts.html">Fonts</a></li>
<li><a href="border-radius.html">Border-Radius</a></li>
<li><a href="custom-properties.html">Custom Properties</a></li>