Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / borders / border-radius-mask-canvas-all.html
blob01869706dc046f87c53ea844ec95beeccdba7d72
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;
12 </style>
13 </head>
14 <body>
15 <h3>It passes if:</h3>
16 <ul>
17 <li>the 10px gray background is visible around the canvas content</li>
18 <li>has 5px solid red border</li>
19 <li>all the corners for border and padding are rounded</li>
20 <li>the bottom right corner of canvas content is NOT rounded</li>
21 </ul>
22 <canvas id="theCanvas" width="257" height="257"></canvas>
23 <script>
24 if (window.internals) {
25 internals.settings.setAccelerated2dCanvasEnabled(true);
27 var context = theCanvas.getContext('2d');
28 context.fillStyle = 'green';
29 context.fillRect(0, 0, theCanvas.width, theCanvas.width);
30 </script>
31 </body>
32 </html>