22 lines
686 B
HTML
22 lines
686 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
p {
|
|
margin: 0px;
|
|
}
|
|
#maskedElement {
|
|
width: 280px;
|
|
height: 210px;
|
|
background-color: blue;
|
|
-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 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>
|
|
</body>
|
|
</html> |