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/layout/reftests/svg/mask-transformed-01.svg
<!--
Any copyright is dedicated to the Public Domain.
-->
<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400">
<defs>
<mask id="m1" maskUnits="objectBoundingBox" maskContentUnits="objectBoundingBox">
<rect x="0" y="0" width="1" height="1" fill="white"/>
</mask>
</defs>
<foreignObject width="100%" height="100%" transform="scale(0.5)">
<svg style="width:100%; height:100%;">
<rect width="100%" height="100%" fill="lime" mask="url(#m1)"/>
</svg>
</foreignObject>
</svg>