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-css-transform-003.svg
<g id="testmeta">
<title>CSS Masking: clipPath with CSS Transforms on content element</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 content element of the
clipPath element. A green square should be visible.</desc>
</g>
<clipPath id="clip1">
<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>