summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-backgrounds/background-color-body-propagation-006.html
blob: 4c58cb9dc212f9b02a94b5bc7121cb50bd70cb61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<html class="reftest-wait">
<title>CSS Backgrounds and Borders Test: don't propagate body background when html is display:none dynamic</title>
<link rel="help" href="https://drafts.csswg.org/css-backgrounds/#special-backgrounds">
<link rel="match" href="../reference/blank.html">
<style>
  body { background: red; }
</style>
<script>
  window.onload = () => {
    requestAnimationFrame(() => requestAnimationFrame(() => {
      document.documentElement.style.display = "none";
      document.documentElement.classList.remove("reftest-wait");
    }));
  };
</script>
<body></body>