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-contains-inner-svg-01.svg
<?xml version="1.0"?>
<defs>
<mask id="myMask">
<svg x="50%" overflow="visible">
<polygon fill="white" points="-50 0 50 0 50 100 -50 100"/>
</svg>
</mask>
</defs>
<rect width="100%" height="100%" fill="lime"/>
<circle cx="50%" cy="50" r="40" fill="red"/>
<rect mask="url(#myMask)" width="100%" height="100%" fill="lime"/>
</svg>