wpt / css / css-text-decor / text-decoration-inset-024.html

Status: FAIL | Duration: 12ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-text-decor/text-decoration-inset-024.html

<!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-024-ref.html">

<style>
body {
  background: white;
  color: black;
}
div {
  position: relative;
}
h1 {
  position: absolute;
  text-indent: 40px; /* shifts the text and underline together */
}
u {
  text-decoration-color: black;
  text-decoration-inset: 20px -20px;
}
</style>

<p>The underline for "brown" should be offset by 20px to the right:</p>

<div>
  <h1>
    the quick <u>brown</u> fox
  </h1>
</div>

/css/css-text-decor/reference/text-decoration-inset-024-ref.html

<!DOCTYPE html>
<meta charset="utf-8">

<title>CSS Text Decoration 4 reference: 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">

<style>
body {
  background: white;
  color: black;
}
div {
  position: relative;
}
h1 {
  position: absolute;
  text-indent: 40px;
}
u {
  text-decoration-color: black;
}
</style>

<p>The underline for "brown" should be offset by 20px to the right:</p>

<div>
  <h1>
    the quick brown fox
  </h1>
  <h1 style="left: 20px; color: transparent">
    the quick <u>brown</u> fox
  </h1>
</div>