testing/web-platform/tests/css/css-masking/clip-path/clip-path-inline-004.html
author Lando <lando@lando.test>
Fri, 11 Jul 2025 09:11:47 +0000 (112 minutes ago)
changeset 796052 0a0cf87651274d2f86228467e41dafd62a510749
parent 675893 c6bccd69d8ea079d8cb84f7d235cf7ead7b46e6e
permissions -rw-r--r--
Merge autoland to mozilla-central
<!DOCTYPE html>
<title>clip-path on inline with margin-box</title>
<link rel="help" href="https://drafts.csswg.org/css-shapes-1/#valdef-shape-box-margin-box">
<link rel="match" href="clip-path-inline-004-ref.html">
<meta content="ahem" name="flags">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
  .container {
    font: 100px/1 Ahem;
    line-height: 100px;
  }
  .container > span {
    margin: 50px;
    clip-path: circle(25%) margin-box;
    color: green;
  }
</style>
<p>Test passes if there is a filled green circle with radius 50px.
<div class="container">
  <span>X</span>
</div>