summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/selection/selection-shadow-dom-crash-print.html
blob: cf62609173953e30ccce13fd52459c0e48147c63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!doctype html>
<title>Printing with odd selections doesn't crash</title>
<!-- Really a crashtest but since we can't really have print crashtests, we assert that we print something -->
<link rel="mismatch" href="/css/reference/blank.html">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1672856">
<script>
function go() {
  var x = document.getSelection()
  x.extend(b)
  x.modify("move", "left", "word")
  a.remove()
}
</script>
<body onload=go()>
<audio id="a" controls="">
<progress contentEditable>
</audio>
<li id="b">x</li>