blob: 00fd70e297bc38c29193cea9a2b0f7c8262cf6a0 [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#upperHalf');
}
#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 a green inverted-L shape and no red.</p>
<p>This test references a &lt;mask&gt; element from an external SVG</p>
<svg id="redSvg" width="300px" height="400px">
<path fill="red" d="M80,20 L280,20 L280,380 L240,380 L240,60 L80,60 L80,20"/>
</svg>
<div id="maskedElement"></div>
</body>
</html>