mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:17:46 +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:
parent
29b61123a4
commit
68193c365f
4 changed files with 110 additions and 10 deletions
18
Base/res/html/misc/text-decoration.html
Normal file
18
Base/res/html/misc/text-decoration.html
Normal 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>
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue