diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-contain/content-visibility/slot-content-visibility-21-crash.html')
-rw-r--r-- | testing/web-platform/tests/css/css-contain/content-visibility/slot-content-visibility-21-crash.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-contain/content-visibility/slot-content-visibility-21-crash.html b/testing/web-platform/tests/css/css-contain/content-visibility/slot-content-visibility-21-crash.html new file mode 100644 index 0000000000..196f0b4a90 --- /dev/null +++ b/testing/web-platform/tests/css/css-contain/content-visibility/slot-content-visibility-21-crash.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<link rel=author href="mailto:jarhar@chromium.org"> +<link rel=help href="https://bugs.chromium.org/p/chromium/issues/detail?id=1269743"> + +<script> + const selection = window.getSelection(); + document.execCommand("SelectAll"); + document.documentElement.innerHTML = '<map><rt></rt><b></b></map><article>foo</article><details></details>'; + const range = selection.getRangeAt(0); + const details = document.querySelector('details'); + range.insertNode(details) + selection.modify('extend', 'forward', 'paragraph') + selection.collapseToEnd() +</script> |