blob: 75bf8654e3f500a5de8b4cc7afc116bb6efd1860 [file] [log] [blame]
<!DOCTYPE html>
<html>
<style>
* { font-size: 16px; }
div { font-size: 8px; }
</style>
<body>
<script src="../../resources/js-test.js"></script>
<script>
function setProperty(value) {
var div = document.createElement('div');
document.body.appendChild(div);
div.style.setProperty("-webkit-mask-image", "none, none, none, none");
div.style.setProperty("mask-source-type", value);
var computedValue = getComputedStyle(div).getPropertyValue("mask-source-type");
document.body.removeChild(div);
return computedValue;
}
function test(value, expected) {
shouldBeEqualToString('setProperty("' + value + '")', expected);
}
test("alpha, alpha, alpha, alpha", "alpha, alpha, alpha, alpha");
test("luminance, alpha", "luminance, alpha, alpha, alpha");
test("luminance, luminance, luminance, luminance", "luminance, luminance, luminance, luminance");
test("auto, alpha, luminance, luminance", "alpha, alpha, luminance, luminance");
</script>
</body>
</html>