blob: 9bf07f33efbed1907ec23501e5fa3314d09635eb [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
p {
margin: 0px;
}
#maskedElement {
width: 280px;
height: 210px;
background-color: green;
-webkit-mask-image:url('resources/dice.png');
-webkit-mask-source-type: luminance;
}
</style>
</head>
<body>
<p><a href="https://bugs.webkit.org/show_bug.cgi?id=129682">Bug 129682</a> - On success, you should see a simple blue rectangle.</p>
<p>This test sets the mask-image via CSS to a PNG image and then changes it to 'none' via a script.</p>
<div id="maskedElement"></div>
<script>
var maskedElement = document.getElementById("maskedElement");
maskedElement.style.cssText += "-webkit-mask-image:none;background-color: blue";
</script>
</body>
</html>