wpt / css / css-viewport / zoom / text-decoration-thickness.html

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

/css/css-viewport/zoom/text-decoration-thickness.html

<title>CSS zoom applies to text-decoration-thickness when specified and inherited</title>
<link rel="author" title="Brent Fulgham" href="mailto:bfulgham@apple.com">
<link rel="help" href="https://drafts.csswg.org/css-viewport/">
<link rel="match" href="reference/text-decoration-thickness-ref.html">

<style>
.decoration-thickness {
  text-decoration: underline blue;
  text-decoration-thickness: 5px;
}
.zoom {
  zoom: 2;
}
#zoomed-inherited {
  text-decoration-thickness: inherit;
}
</style>

<div id="unzoomed" class="decoration-thickness">unzoomed</div>
<div class="zoom"><div id="zoomed" class="decoration-thickness">zoomed</div></div>
<div class="decoration-thickness"><div id="zoomed-inherited" class="zoom">zoomed inherited</div></div>

/css/css-viewport/zoom/reference/text-decoration-thickness-ref.html

<!DOCTYPE html>
<title>CSS zoom applies to text-decoration-thickness when specified and inherited</title>
<link rel="author" title="Brent Fulgham" href="mailto:bfulgham@apple.com">
<link rel="help" href="https://drafts.csswg.org/css-viewport/">

<style>
body {
  --scale: 1;
}
div {
  font-size: calc(1rem * var(--scale));
  text-decoration: underline blue;
  text-decoration-thickness: calc(5px * var(--scale));
}
.zoom {
  --scale: 2;
}
</style>

<div>unzoomed</div>
<div class="zoom">zoomed</div>
<div class="zoom">zoomed inherited</div>