word-break-break-word-crash-001.html (1028B)
1 <!DOCTYPE html> 2 <title>Test float + nbsp + break-word does not freeze</title> 3 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=972421"> 4 <link rel="author" title="Koji Ishii" href="mailto:kojii@chromium.org"> 5 <script src="/resources/testharness.js"></script> 6 <script src="/resources/testharnessreport.js"></script> 7 <style> 8 div { 9 font-size: 10px; 10 width: 10ch; 11 border: 2px solid blue; 12 } 13 float { 14 float: left; 15 } 16 .nowrap > div { 17 white-space: nowrap; 18 } 19 .break-word { 20 word-break: break-word; 21 } 22 </style> 23 <body> 24 <section> 25 <div>123456<float></float>654321</div> 26 <div>123456<float></float> 654321</div> 27 </section> 28 <section class="nowrap"> 29 <div>123456<float></float>654321</div> 30 <div>123456<float></float> 654321</div> 31 </section> 32 <section class="break-word"> 33 <div>123456<float></float>654321</div> 34 <div>123456<float></float> 654321</div> 35 </section> 36 <script>test(() => { 37 document.body.offsetTop; // layout should not freeze. 38 });</script> 39 </body>