<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
p { | |
margin: 0px; | |
} | |
#maskedElement { | |
width: 300px; | |
height: 400px; | |
background-color: blue; | |
-webkit-mask-image:url('resources/masks.svg'); | |
} | |
</style> | |
</head> | |
<body> | |
<p><a href="https://bugs.webkit.org/show_bug.cgi?id=129682">Bug 129682</a> - On success, you should see four blue squares and no red.</p> | |
<p>This test sets the mask-image via CSS to a <mask> element from an SVG file and then changes it to the entire SVG file via a script.</p> | |
<div id="maskedElement"></div> | |
</body> | |
</html> |