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-ref-loop-01.svg
<!--
Any copyright is dedicated to the Public Domain.
-->
<title>Test handling of simple mask reference loop</title>
<mask id="mask" x="20" y="20" width="100" height="100"
maskUnits="userSpaceOnUse" maskContentUnits="userSpaceOnUse">
<rect x="20" y="20" width="100" height="100" fill="white" mask="url(#mask)"/>
</mask>
<rect width="100%" height="100%" fill="lime"/>
<rect width="140" height="140" fill="red" mask="url(#mask)"/>
<rect x="20" y="20" width="100" height="100" fill="lime"/>
</svg>