summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/content-visibility/slot-content-visibility-17-crash.html
blob: 64e9550e11964f2d98fb3355c3b3053445eba0d7 (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:jarhar@chromium.org">
<link rel=help href="https://bugs.chromium.org/p/chromium/issues/detail?id=1251931">

<style>
  .a + .b { color: green }
</style>
<div id="host">
  <div>
    <div>
      <div id="a"></div><div id="b" class="b"></div>
    </div>
  </div>
</div>
<div style="content-visibility:hidden"></div>
<script>
  host.attachShadow({mode:"open"});
  document.body.offsetTop;
  a.className = "a";
  getComputedStyle(b).color;
</script>