<!DOCTYPE html>
<html class="reftest-wait">
<title>CSS Backgrounds and Borders Test: don't propagate html background when display:none dynamic</title>
<link rel="help" href="https://drafts.csswg.org/css-backgrounds/#special-backgrounds">
<link rel="match" href="../reference/blank.html">
<style>
  html { background: red; }
</style>
<script>
  window.onload = () => {
    requestAnimationFrame(() => requestAnimationFrame(() => {
      document.documentElement.style.display = "none";
      document.documentElement.classList.remove("reftest-wait");
    }));
  };
</script>
