<!doctype HTML>
<html class="reftest-wait">
<meta charset="utf8">
<title>Content Visibility: content in nested `content-visibility: auto` elements is considered relevant</title>
<link rel="author" title="Martin Robinson" href="mailto:mrobinson@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-contain/#content-visibility">
<link rel="match" href="content-visibility-auto-nested-ref.html">
<meta name="assert" content="content in nested `content-visibility: auto` elements is considered relevant">

<script src="/common/reftest-wait.js"></script>
<script src="../resources/utils.js"></script>

<style>
div {
    content-visibility: auto;
}
</style>

<script>
function runTest() {
  requestAnimationFrame(takeScreenshot);
}
window.onload = () => { requestAnimationFrame(runTest); };
</script>

<div style="border:solid">
    <div>content with content-visibility: auto</div>
</div>
