testing/web-platform/tests/css/css-masking/clip-path/clip-path-fixed-nested.html
author Emilio Cobos Álvarez <emilio@crisal.io>
Thu, 10 Jul 2025 09:08:54 +0000 (2 hours ago)
changeset 795952 1d422913e1cb1658224a2d269f8e4c9e80032d29
parent 452877 d1babeef937f5cd40a840082bdb1e4252b831947
permissions -rw-r--r--
Bug 1976623 - Create drag popups eagerly for now. r=tnikkel,layout-reviewers Trivially restores pre-regression behavior, for now. Differential Revision: https://phabricator.services.mozilla.com/D256769
<!doctype html>
<title>CSS Test: nested clip-path() inside the same reference frame with position: fixed</title>
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<link rel="author" href="https://mozilla.org" title="Mozilla">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1501111">
<link rel="help" href="https://drafts.fxtf.org/css-masking/#the-clip-path">
<link rel="match" href="clip-path-fixed-nested-ref.html">
<style>
  body, html {
    margin: 0;
    padding: 0;
  }
  .outer-clip {
    height: 100vh;
    clip-path: inset(0 0 0 0);
    background: green;
  }
  .fixed {
    position: fixed;
  }
  .inner-clip {
    height: 50px;
    width: 50px;
    clip-path: inset(0 0 0 0);
  }
  .inner-clip-contents {
    height: 100px;
    width: 100px;
    background: purple;
  }
</style>
<div class="outer-clip">
  <div class="fixed">
    <div class="inner-clip">
      <div class="inner-clip-contents"></div>
    </div>
  </div>
</div>