summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/content-visibility/slot-content-visibility-20-crash.html
blob: a128f6a59d3fe31377a6aca8c42e676d3e391694 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html>
<link rel=author href="mailto:jarhar@chromium.org">
<link rel=help href="https://bugs.chromium.org/p/chromium/issues/detail?id=1268837">

<style>
summary {
  margin: 1px 1px 1px -1px;
}
* {
  max-height: 0vh;
}
</style>

<script>
function jsfuzzer() {
  document.documentElement.appendChild(document.querySelector('details'));
  document.execCommand("selectAll");
  document.querySelector('li').replaceChild(
    document.querySelector('q'),
    document.querySelector('div'));
  document.caretRangeFromPoint(127,487);
}
</script>

<body onload=jsfuzzer()>

<li>
  <div></div>
  <details>
    <summary></summary>
    <q></q>
  </details>
</li>