Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

SVG Preview (Scaled)

Preview of https://hg.mozilla.org/mozilla-central/raw-file/tip/testing/web-platform/tests/css/css-masking/clip-path-svg-content/clip-path-shape-circle-004.svg
<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="help" href="http://www.w3.org/TR/css-masking-1/#the-clip-path"/>
<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>