4 <script src="../../resources/run-after-display.js"></script>
9 background-color: green;
14 background-color: red;
15 border: 50px solid blue;
20 var sizeX = 121, sizeY = 93, spaceX = 15, spaceY = 9, width = 800, height = 400;
22 var urls = Array(), size = Array(), position = Array(), repeat = Array(),
23 origin = Array(), clip = Array();
26 for (var x = 0; x < width; x += sizeX + spaceX) {
27 for (var y = 0; y < height; y += sizeY + spaceY) {
28 urls.push("url(resources/circle-alpha.svg)");
29 size.push(sizeX + "px " + sizeY + "px");
30 position.push(x + "px " + y + "px");
34 div = document.getElementById("front");
36 div.style.cssText += "-webkit-mask-image: " + urls.join(", ") + ";" +
37 "-webkit-mask-size: " + size.join(", ") + ";" +
38 "-webkit-mask-position: " + position.join(", ") + ";" +
39 "-webkit-mask-repeat: no-repeat;" +
40 "-webkit-mask-origin: content-box;" +
41 "-webkit-mask-clip: content-box;";
46 <body onload="addMasks()">
51 if (window.testRunner)
52 testRunner.waitUntilDone();
54 runAfterDisplay(function() {
55 if (window.testRunner)
56 testRunner.notifyDone();