summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/fullscreen/rendering/backdrop-iframe.html
blob: 710d1b48f182d0fcb577298c72bbf6a7f7329dbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html class=reftest-wait>
<title>::backdrop for a fullscreen iframe element</title>
<link rel=match href="backdrop-iframe-ref.html">
<link rel=help href="https://github.com/w3c/csswg-drafts/issues/6939">
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>

<style>
iframe::backdrop {
  background: green;
}
</style>
<iframe></iframe>
<script>
document.addEventListener('fullscreenchange', () => {
  document.documentElement.classList.remove('reftest-wait');
});
test_driver.bless('fullscreen', () => {
  document.querySelector('iframe').requestFullscreen();
});
</script>