summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-text/white-space/text-wrap-balance-dynamic-001.html
blob: 8c7d27d1a347407c82f0602bba105982764729e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<link rel="help" href="https://w3c.github.io/csswg-drafts/css-text-4/#valdef-text-wrap-balance">
<link rel="match" href="reference/text-wrap-balance-dynamic-001-ref.html">
<style>
#container {
  width: 20ch;
  text-wrap: balance;
}
span:hover {
  color: red;
}
</style>
<div id="container">
  123 567 901 345 789
  123 567 901 345 789
  123 567 901 345 789
</div>
<script>
document.body.offsetTop;
container.appendChild(document.createTextNode('999'));
</script>