|
| 1 | +<!DOCTYPE html> |
| 2 | +<html class="reftest-wait"> |
| 3 | +<link rel="match" href="../expected/text-decoration-propagation-repaint-ref.html"> |
| 4 | +<style> |
| 5 | + #color { text-decoration: underline transparent; } |
| 6 | + #color.on { text-decoration: underline red; } |
| 7 | + |
| 8 | + #removal.on { text-decoration: underline red; } |
| 9 | + |
| 10 | + #offset { |
| 11 | + text-decoration: underline; |
| 12 | + text-decoration-skip-ink: none; |
| 13 | + text-underline-offset: 0; |
| 14 | + } |
| 15 | + |
| 16 | + #offset.on { text-underline-offset: 12px; } |
| 17 | + #offset-descendant { text-underline-offset: 0; } |
| 18 | + |
| 19 | + #position { |
| 20 | + text-decoration: underline; |
| 21 | + text-decoration-skip-ink: none; |
| 22 | + text-underline-position: auto; |
| 23 | + } |
| 24 | + |
| 25 | + #position.on { text-underline-position: under; } |
| 26 | + #position-descendant { text-underline-position: auto; } |
| 27 | +</style> |
| 28 | +<span id="color"><div>This text must have a red underline.</div></span> |
| 29 | +<span id="removal" class="on"><div>This text must not have an underline.</div></span> |
| 30 | +<span id="offset">before <div id="offset-descendant">nested</div> after</span> |
| 31 | +<span id="position">before <div id="position-descendant">nested</div> after</span> |
| 32 | +<script> |
| 33 | + requestAnimationFrame(() => { |
| 34 | + requestAnimationFrame(() => { |
| 35 | + for (let id of ["color", "offset", "position"]) |
| 36 | + document.getElementById(id).classList.add("on"); |
| 37 | + document.getElementById("removal").classList.remove("on"); |
| 38 | + requestAnimationFrame(() => { |
| 39 | + if (window.internals) |
| 40 | + internals.signalTestIsDone("PASS"); |
| 41 | + else |
| 42 | + document.documentElement.classList.remove("reftest-wait"); |
| 43 | + }); |
| 44 | + }); |
| 45 | + }); |
| 46 | +</script> |
| 47 | +</html> |
0 commit comments