Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
            
- /css/css-text-decor/text-decoration-inset-005.html - WPT Dashboard Interop Dashboard
 
 
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text Decoration 4: text-decoration-inset</title>
<link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-skip-inset-property">
<link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
<link rel="match" href="reference/text-decoration-inset-005-ref.html">
<style>
body {
  background: white;
  color: black;
}
div {
  position: relative;
}
h1 {
  position: absolute;
}
u {
  text-decoration-color: black;
  text-decoration-inset: -0.25em;
}
</style>
<p>The underline for "ultra-quick brown" should be extended by .25em at each end;
super- and sub-scripts should be unaffected:</p>
<div>
  <h1>
    the <u>ultra-<sup>quick</sup> b<sub>row</sub>n</u> fox
  </h1>
</div>