diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-text/white-space/pre-line-br-with-whitespace-child-crash.html')
-rw-r--r-- | testing/web-platform/tests/css/css-text/white-space/pre-line-br-with-whitespace-child-crash.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-text/white-space/pre-line-br-with-whitespace-child-crash.html b/testing/web-platform/tests/css/css-text/white-space/pre-line-br-with-whitespace-child-crash.html new file mode 100644 index 0000000000..c7e1855f97 --- /dev/null +++ b/testing/web-platform/tests/css/css-text/white-space/pre-line-br-with-whitespace-child-crash.html @@ -0,0 +1,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> |