testing/web-platform/tests/css/css-masking/clip-path/clip-path-fixed-scroll.html
author Lando <lando@lando.test>
Thu, 10 Jul 2025 16:11:40 +0000 (4 hours ago)
changeset 795966 8f464d9c468ba1a7c1b0338deaa8bc8023f8ae3d
parent 600300 826e1199f0b97a1f9439bcd6812274aa7f931bf5
permissions -rw-r--r--
Merge autoland to mozilla-central
<!doctype html>
<html class="reftest-wait">
<title>CSS Test: clip-path above  position: fixed scrolled</title>
<link rel="help" href="https://crbug.com/1267676">
<link rel="help" href="https://drafts.fxtf.org/css-masking/#the-clip-path">
<link rel="match" href="clip-path-fixed-scroll-ref.html">
<script src="/common/rendering-utils.js"></script>
<script src="/common/reftest-wait.js"></script>
<div style="height: 100vh"></div>
<div style="width: 200px; height: 200px; clip-path: inset(0 0 0 0)">
  <div style="position: fixed; top: 0; left: 0; width: 2000px; height: 2000px; background: green"></div>
</div>
<script>
waitForAtLeastOneFrame().then(() => {
  scrollTo(0, 1000);
  takeScreenshot();
});
</script>
</html>