pre-line-br-with-whitespace-child-crash.html (615B)
1 <!DOCTYPE html> 2 <title>CSS Text Test: Chrome pre-line crash test</title> 3 <link rel="help" href="https://crbug.com/989827"> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <style> 7 br { white-space: pre-line } 8 </style> 9 <script> 10 test(() => { 11 document.documentElement.remove(); 12 const br = document.createElement("br"); 13 br.appendChild(document.createTextNode("")); 14 document.appendChild(br); 15 br.offsetTop; 16 br.firstChild.data = " "; 17 }, "Modifying data of a text child of a root br element with pre-line should not crash."); 18 </script>