summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/editing/crashtests/inserthorizontalrule-in-fieldset-and-everything-styled-white-space-pre.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/editing/crashtests/inserthorizontalrule-in-fieldset-and-everything-styled-white-space-pre.html')
-rw-r--r--testing/web-platform/tests/editing/crashtests/inserthorizontalrule-in-fieldset-and-everything-styled-white-space-pre.html25
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/web-platform/tests/editing/crashtests/inserthorizontalrule-in-fieldset-and-everything-styled-white-space-pre.html b/testing/web-platform/tests/editing/crashtests/inserthorizontalrule-in-fieldset-and-everything-styled-white-space-pre.html
new file mode 100644
index 0000000000..d06157e784
--- /dev/null
+++ b/testing/web-platform/tests/editing/crashtests/inserthorizontalrule-in-fieldset-and-everything-styled-white-space-pre.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <style>
+ * {
+ white-space: pre
+ }
+ </style>
+ <script>
+ document.addEventListener('DOMContentLoaded', () => {
+ const quote_0 = document.getElementById('id_0')
+ const quote_1 = document.createElement('blockquote')
+ const fieldset_1 = document.createElement('fieldset')
+ quote_1.appendChild(fieldset_1)
+ document.documentElement.appendChild(quote_1)
+ const selection = self.getSelection()
+ selection.collapse(fieldset_1, 0)
+ quote_0.contentEditable = false
+ document.documentElement.contentEditable = true
+ document.execCommand('insertHorizontalRule', false, null)
+ })
+ </script>
+</head>
+<blockquote id='id_0'></blockquote>
+</html>