<!DOCTYPE html>
<html>
<body>
<fencedframe style="width: 100%; height: 300px; border: 0"></fencedframe>
<script>
const url = new URL("resources/visibility-changed-inner.php",
location.href);
document.querySelector("fencedframe").config = new FencedFrameConfig(url);
// Finish the ref test when the visibility event has been received
// by the fenced frame.
if (window.testRunner) {
testRunner.waitUntilDone();
}
</script>
</body>
</html>