summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/content-visibility/content-visibility-selection-crash.html
blob: 78b610b72ee481c015ba17671e6c916d22fd6b9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<style>
* { content-visibility: auto; }
</style>
<script>
document.addEventListener('DOMContentLoaded', () => {
  document.documentElement.setAttribute('contenteditable', true)
  let a = document.createElement('map')
  let b = document.createElement('h1')
  let c = document.createElement('kbd')
  b.appendChild(c)
  a.appendChild(b)
  document.documentElement.appendChild(a)
  let d = new Range()
  let f = document.getSelection()
  f.addRange(d)
  d.setStart(c, 0)
  f.addRange(d)
  f.removeRange(d)
})
</script>