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-css-transform-004.svg - WPT Dashboard Interop Dashboard
<g id="testmeta">
<title>CSS Masking: clipPath with CSS Transforms on both content elements</title>
<html:link rel="author" title="Dirk Schulze" href="mailto:dschulze@adobe.com"/>
<html:link rel="match" href="reference/clip-path-square-003-ref.svg" />
<metadata class="flags">svg</metadata>
<desc class="assert">CSS Transforms must apply on both content elements of
the clipPath element. A green square should be visible.</desc>
</g>
<clipPath id="clip1">
<rect width="400" height="400" style="transform: scale(.5)"/>
<!-- Second rect may cause masking. -->
<rect width="400" height="400" style="transform: scale(.5)"/>
</clipPath>
<rect width="400" height="400" fill="red" clip-path="url(#clip1)"/>
<rect width="200" height="200" fill="green"/>
</svg>