Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / borders / border-radius-mask-canvas-with-mask.html
blob9d968cc6cc6765da4fbddd7c9911409cf9f7aed1
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <style>
5 canvas {
6 background-color: gray;
7 border-radius: 40px 200px 10px 200px;
8 padding: 10px;
9 margin: 20px;
10 border: 5px solid red;
11 -webkit-mask-image: -webkit-linear-gradient(top, rgba(0,0,0,1), rgba(0,0,0,0));
13 </style>
14 </head>
15 <body>
16 <h3>It passes if:</h3>
17 <ul>
18 <li>the canvas element has a gradient mask applied</li>
19 <li>the canvas content has rounded corners</li>
20 </ul>
21 <canvas id="theCanvas" width="257" height="257"></canvas>
22 <script>
23 if (window.internals) {
24 internals.settings.setAccelerated2dCanvasEnabled(true);
26 var context = theCanvas.getContext('2d');
27 context.fillStyle = 'green';
28 context.fillRect(0, 0, theCanvas.width, theCanvas.width);
29 </script>
30 </body>
31 </html>