summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/content-visibility/slot-content-visibility-21-crash.html
blob: 196f0b4a90aafaad985342bbb773a39f9f31a7e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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>