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/objectBoundingBox-and-mask-02.svg
<!--
Any copyright is dedicated to the Public Domain.
-->
<title>Testcase for re-using an objectBoundingBox mask with a &lt;g&gt; child</title>
<mask id="mask" maskUnits="objectBoundingBox" maskContentUnits="objectBoundingBox">
<g>
<rect width="1" height="1" fill="white"/>
</g>
</mask>
<rect width="100%" height="100%" fill="red"/>
<rect mask="url(#mask)" width="1" height="1" fill="red"/>
<rect mask="url(#mask)" width="100%" height="100%" fill="lime"/>
</svg>