blob: ae5df003fa908b81081d6ddb0852290e779a74e3 [file] [log] [blame]
<svg xmlns="http://www.w3.org/2000/svg" xmlns:html="http://www.w3.org/1999/xhtml">
<g id="testmeta">
<title>CSS Masking: clipPath on element with marker</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/#svg-clipping-paths"/>
<html:link rel="help" href="http://www.w3.org/TR/css-masking-1/#ClipPathElement"/>
<html:link rel="match" href="reference/clip-path-on-marker-001-ref.svg" />
<metadata class="flags">svg</metadata>
<desc class="assert">A clipPath element with marker is clipped as a
whole. Note that a marker does not influence the bounding box of an
element. You should see a green square with a blur square in it on the top
left.</desc>
</g>
<clipPath id="clip1" clipPathUnits="objectBoundingBox">
<rect width="1" height="1"/>
</clipPath>
<marker id="marker1" viewBox="0 0 10 10" refX="5" refY="5" markerWidth="100" markerHeight="100">
<rect width="10" height="10" fill="blue"/>
</marker>
<path d="M50,50 L150,50 L150,150 L50,150 z" marker-start="url(#marker1)" clip-path="url(#clip1)" fill="green"/>
</svg>