Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / canvas / canvas-css-crazy.html
blobf8678dfdd8d6dec9632f8a3011c8c90be02325d0
1 <html>
2 <head>
3 <style>
4 div { background: -webkit-canvas(squares); width:600px; height:600px; border:2px solid black }
5 </style>
6 <script>
7 if (window.testRunner)
8 testRunner.dumpAsText();
10 function draw(w, h) {
11 var ctx = document.getCSSCanvasContext("4d", "squares", w, h);
12 if (ctx !== null)
13 alert("FAIL! ctx wasn't null: " + ctx);
14 alert("PASS");
16 </script>
17 </head>
18 <body onload="draw(300, 300)">
19 <div></div>
20 </body>
21 </html>