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-type-03.svg
<!--
Any copyright is dedicated to the Public Domain.
-->
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"
class="reftest-wait" onload="run()">
<title>Testcase for alpha mask, dynamically setting mask-type</title>
<mask id="m" maskContentUnits="objectBoundingBox">
<rect x=".1" y=".1" width=".8" height=".8" fill="black" fill-opacity="0.5"/>
</mask>
<rect width="100" height="100" fill="blue" mask="url(#m)"/>
<script>
function run() {
document.getElementById("m").style.maskType = "alpha";
document.documentElement.removeAttribute("class");
}
</script>
</svg>