Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-masking/clip-path-svg-content/clip-path-shape-circle-004.svg - WPT Dashboard Interop Dashboard
<g id="testmeta">
<title>CSS Masking: Basic shape circle() on SVG rectangle with stroke-box</title>
<html:link rel="author" title="Dirk Schulze" href="mailto:dschulze@adobe.com"/>
<html:link rel="match" href="reference/clip-path-circle-001-ref.svg" />
<html:meta name="fuzzy" content="maxDifference=0-64; totalPixels=0-376"/>
<metadata class="flags">svg</metadata>
<desc class="assert">A basic shape function circle() applied to an SVG
rectangle. The specified keyword stroke-box defines the reference box
stroking bounding box. You should see a full green circle.</desc>
</g>
<rect x="10" y="10" width="80" height="80" fill="green" stroke="green" stroke-width="20" style="clip-path: circle() stroke-box;"/>
</svg>