summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/content-visibility/hidden-pseudo-element-removed-crash.html
blob: 62e38f214be715299f59bfc5f85697d28dfe4e92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<html class="test-wait">
<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">
<meta name="assert" content="Removing elements under hidden subtrees doesn't crash">

<p id="parent"><q><svg><marker display="list-item"><hr><object id="inner">
<style>
q {
  content-visibility: hidden;
}
</style>
<script>
  onload = () => {
    document.getElementById("parent").hidden = true;
    var test = document.getElementById("inner").border;
    document.getElementById("parent").textContent = undefined;

    requestAnimationFrame(() => document.documentElement.classList.remove('test-wait'));
  }
</script>