testing/web-platform/tests/css/css-backgrounds/child-move-reveals-parent-background.html
author Cosmin Sabou <csabou@mozilla.com>
Sat, 12 Jul 2025 09:18:08 +0300 (13 hours ago)
changeset 796290 5ad1f0c58c82bdfa2f42fed870bbe143465398d0
parent 459252 c23a93169e0718cb104d895bdcdb64cae18b3f5f
permissions -rw-r--r--
Revert "Bug 1977019 - re-enable hw video decoding testing. r=media-playback-reviewers,jolin" for causing win mda failures on test_hw_video_decoding.html This reverts commit 158474bdc0cf585b701bc47921f0a7d84f7bb84d.
<!DOCTYPE html>
<html class="reftest-wait">
<title>Child moves and reveals previously obscured background of the parent</title>
<link rel="match" href="child-move-reveals-parent-background-ref.html">
<link rel="help" href="https://drafts.csswg.org/css-backgrounds">
<script src="/common/reftest-wait.js"></script>
<style>
  #parent {
    width: 150px;
    height: 150px;
    background-color: green;
  }
  #child {
    width: 150px;
    height: 150px;
    background-color: white;
    position: relative;
  }
</style>
<p>There should be a green square below.</p>
<div id="parent">
  <div id="child"></div>
</div>
<script>
  requestAnimationFrame(() => requestAnimationFrame(() => {
    child.style.left = '150px';
    takeScreenshot();
  }));
</script>