summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/content-visibility/meter-selection-crash.html
blob: 9edca97568e288c0231ac942eeadfe397ea9e00f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!doctype HTML>
<link rel=author href="mailto:vmpstr@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-contain/#content-visibility">
<meta name="assert" content="meter, iframe, and selection API should not crash">

<style>
* {
  all: initial;
  content-visibility: hidden;
}
</style>

<meter></meter><iframe id="frame"></iframe>
<script>
function runTest() {
  var range_beadc = window.getSelection();
  var elem1 = document.getElementById("frame");
  range_beadc.setBaseAndExtent(elem1, 0, document.getElementById("none"), 0);
}
onload = runTest;
</script>