summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/content-visibility/slot-content-visibility-12-crash.html
blob: 51bdfd3f6245e352f229e1482a15a1bea68f4fc0 (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
<!DOCTYPE html>
<link rel=author href="mailto:jarhar@chromium.org">
<link rel=help href="https://bugs.chromium.org/p/chromium/issues/detail?id=1221036">

<div>
  <template shadowrootmode=open>
    <slot style="content-visibility: hidden; display: block"></slot>
  </template>
  a
</div>
<iframe src="resources/slot-content-visibility.html"></iframe>
<div>
  <template shadowrootmode=open>
    <slot style="content-visibility: hidden; display: block"></slot>
  </template>
  a
</div>
<iframe src="resources/slot-content-visibility.html"></iframe>
<div>
  <template shadowrootmode=open>
    <slot style="content-visibility: hidden; display: block"></slot>
  </template>
  a
</div>

<script>
  const range = new Range();
  range.setStartBefore(document.body.firstChild);
  range.setEndAfter(document.body.lastChild);
  range.getBoundingClientRect();
</script>