Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text Decoration 4: text-decoration-trim</title>
<link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
<style>
body {
background: white;
color: black;
}
div {
position: relative;
}
h1 {
position: absolute;
}
u {
text-decoration-color: blue;
text-decoration-trim: auto;
text-underline-position: under;
}
</style>
<p>The underlines for "石井" and for "艾俐俐" should be visibly separate:</p>
<div>
<h1 lang="zh">
<u>石井艾俐俐</u>
</h1>
</div>