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