overflow-wrap-break-word-long-crash.html (676B)
1 <!DOCTYPE html> 2 <title>CSS Text Test: very long line with `overflow-wrap: break-word` should not crash</title> 3 <link rel="help" href="https://crbug.com/961987"> 4 <link rel="author" title="Koji Ishii" href="kojii@chromium.org"> 5 <script src="/resources/testharness.js"></script> 6 <script src="/resources/testharnessreport.js"></script> 7 <style> 8 html, body { 9 margin: 0; 10 } 11 body { 12 overflow-wrap: break-word; 13 width: 2147483648px; 14 } 15 div { 16 /* Double the width in case CSS parser clamps the body width. */ 17 width: 200%; 18 } 19 span { 20 border-left: 2147483648px solid; 21 } 22 </style> 23 <body> 24 <div><span>x</span></div> 25 <script> 26 test(() => { document.body.offsetTop; }); 27 </script> 28 </body>