blob: 8e0d8fc15e87ea379632a81781238d3222b1646f [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
p {
margin: 0px;
}
#maskedElement {
width: 300px;
height: 400px;
background-color: green;
-webkit-mask-image:url('resources/masks.svg');
}
#redSvg {
position: absolute;
}
</style>
</head>
<body>
<p><a href="https://bugs.webkit.org/show_bug.cgi?id=129682">Bug 129682</a> - On success, you should see 4 green rectangles and no red.</p>
<p>This test references an external SVG without specifying a fragment id.</p>
<svg id="redSvg" width="300px" height="400px">
<rect x="5px" y="45px" width="140px" height="140px" fill="red"/>
<rect x="155px" y="45px" width="140px" height="140px" fill="red"/>
<rect x="155px" y="215px" width="140px" height="140px" fill="red"/>
<rect x="5px" y="215px" width="140px" height="140px" fill="red"/>
</svg>
<div id="maskedElement"></div>
</body>
</html>