summaryrefslogtreecommitdiffstats
path: root/layout/reftests/text/wordbreak-dynamic-1.html
blob: 930ba6efb5f833ad14c9322024be434216405b4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE html>
<html class="reftest-wait">
<head>
  <meta charset="UTF-8">
  <title>Test - word-break: break-all with dynamic change</title>
  <style>
    div {
      font-family: monospace;
      width: 3ch;
      background: pink;
      word-break: break-all;
    }
  </style>
</head>
<body>
  <div>a bcdef<div></div></div>
  <script>
    document.addEventListener("DOMContentLoaded", function() {
      document.body.offsetHeight;
      document.querySelector('div > div').style.display = 'none';
      document.documentElement.classList.remove('reftest-wait');
    });
  </script>
</body>
</html>