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/invalidation/text-decoration-thickness.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html class="reftest-wait">
<meta charset="utf-8">
<title>text-decoration-thickness invalidation</title>
<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>