Status: PASS | Duration: 7ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-text-decor/invalidation/text-decoration-thickness.html
<!DOCTYPE html> <html class="reftest-wait"> <meta charset="utf-8"> <title>text-decoration-thickness invalidation</title> <link rel="author" title="Tim Nguyen" href="https://github.com/nt1m"> <link rel="help" href="https://drafts.csswg.org/selectors/#the-hover-pseudo"> <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-thickness-property"> <link rel="match" href="text-decoration-thickness-ref.html"> <style> :link { text-decoration: underline; text-decoration-thickness: 1px; } :link:hover { text-decoration-thickness: 3px; } </style> <p>The link below should increase its underline thickness when hovered:</p> <div style="font-size: 28px;"> <a href="#" id="link">Hover me</a> </div> <script src="/resources/testdriver.js"></script> <script src="/resources/testdriver-actions.js"></script> <script src="/resources/testdriver-vendor.js"></script> <script> window.addEventListener("load", async () => { // Hover the link await new test_driver.Actions().pointerMove(0, 0, { origin: link }).send(); document.documentElement.classList.remove("reftest-wait"); }); </script> </html>
/css/css-text-decor/invalidation/text-decoration-thickness-ref.html
<!DOCTYPE html> <html> <meta charset="utf-8"> <title>text-decoration-thickness invalidation reference</title> <style> :link { text-decoration: underline; text-decoration-thickness: 3px; } </style> <p>The link below should increase its underline thickness when hovered:</p> <div style="font-size: 28px;"> <a href="#" id="link">Hover me</a> </div> </html>