blob: cf1dad95f35c687dcfc54a1028477d2268d44c3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<!doctype html>
<title>CSS Test: Dynamic text-decoration propagation</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="help" href="https://www.w3.org/TR/css-text-decor-3/#line-decoration">
<link rel="match" href="reference/text-decoration-propagation-dynamic-001-ref.html">
<style>
div { text-decoration: none }
div.restyled { text-decoration: underline }
</style>
<div>
<span><b>Should be underlined</b></span>
</div>
<script>
document.body.offsetTop;
document.querySelector('div').classList = "restyled";
</script>
|