testing/web-platform/tests/css/css-masking/clip-path/clip-path-rect-002.html
author Cosmin Sabou <csabou@mozilla.com>
Sat, 12 Jul 2025 09:18:08 +0300 (9 hours ago)
changeset 796290 5ad1f0c58c82bdfa2f42fed870bbe143465398d0
parent 672716 fbce1db481cab432766eb9f5b0bc78c5453c3014
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>
<head>
  <title>CSS Masking: Test clip-path property and rect function</title>
  <link rel="help" href="https://drafts.csswg.org/css-shapes-1/#funcdef-basic-shape-rect">
  <link rel="match" href="reference/clip-path-rectangle-ref.html">
  <meta name="assert" content="The clip-path property takes the basic shape
	'rect()' for clipping. On pass you should see a green rect.">
</head>
<style>
  #rect {
    width: 400px;
    height: 200px;
    background-color: green;
    clip-path: rect(25% 50% 75% 12.5%);
  }
</style>
<body>
  <p>The test passes if there is a green box.</p>
  <div id="rect"></div>
</body>
</html>