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-on-marker-001.svg - WPT Dashboard Interop Dashboard
<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="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>