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