overflow-wrap-break-word-white-space-crash-002.html (850B)
1 <!DOCTYPE html> 2 <title>CSS Text Test: A combination of `overflow-wrap: break-word` and `white-space` should not crash</title> 3 <link rel="help" href="https://crbug.com/1001359"> 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 .container { 9 font-family: sans-serif; 10 font-size: 14px; 11 width: 680px; 12 word-wrap: break-word; 13 } 14 15 spacer { 16 display: inline-block; 17 width: 620px; 18 } 19 20 pre-wrap { 21 white-space: pre-wrap; 22 } 23 24 nowrap { 25 white-space: nowrap; 26 } 27 28 inline-block { 29 display: inline-block; 30 } 31 </style> 32 <body> 33 <div class="container"> 34 <spacer></spacer> 35 <nowrap><span><pre-wrap><inline-block></inline-block></pre-wrap></span>123456</nowrap>987654321 36 </div> 37 <script> 38 test(() => { }); 39 </script> 40 </body>