mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-29 16:21:29 +00:00
d5e3158cfe
No need to calculate baseline based on glyph height when we can get this information from a fragment.
40 lines
868 B
HTML
40 lines
868 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<link rel="match" href="reference/text-decorations-ref.html" />
|
|
<style>
|
|
.underline {
|
|
text-decoration: underline;
|
|
text-decoration-thickness: 2px;
|
|
}
|
|
|
|
.overline {
|
|
text-decoration: overline;
|
|
text-decoration-thickness: 2px;
|
|
}
|
|
|
|
.line-through {
|
|
text-decoration: line-through;
|
|
text-decoration-thickness: 2px;
|
|
}
|
|
|
|
.underline-overline {
|
|
text-decoration: underline overline;
|
|
text-decoration-thickness: 2px;
|
|
}
|
|
|
|
.underline-line-through {
|
|
text-decoration: underline line-through;
|
|
text-decoration-thickness: 2px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p class="underline">Hello</p>
|
|
<p class="overline">Hello</p>
|
|
<p class="line-through">Hello</p>
|
|
<p class="underline-overline">Hello</p>
|
|
<p class="underline-line-through">Hello</p>
|
|
</body>
|
|
</html>
|