Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Test case for text-decoration-thickness [reference]</title>
<link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
div {
position: absolute;
top: 50px;
line-height: 100px;
}
u {
display: inline-block;
font: 20px/1 Ahem;
width: 100px;
text-align-last: justify;
color: transparent;
text-decoration: green underline;
text-decoration-skip-ink: none;
/* place underline exactly at the bottom of the text */
text-underline-position: auto;
text-underline-offset: 0px;
text-decoration-skip-ink: none;
text-decoration-thickness: 20px;
}
</style>
</head>
<body>
<p>Test passes if there are four equal green rectangles and no red</p>
<div>
<u>X X</u>
<u>X X</u>
<u>X X</u>
<u>X X</u>
</div>
</body>
</html>