summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-text/white-space/text-wrap-balance-dynamic-001.html
blob: 76b4cbbb433568b7cc25f7b1fb6e419b9a9570be (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://drafts.csswg.org/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>