OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 canvas { | 5 canvas { |
6 background-color: gray; | 6 background-color: gray; |
7 border-radius: 0px 200px 0px 200px; | 7 border-radius: 0px 200px 0px 200px; |
8 padding: 10px; | 8 padding: 10px; |
9 } | 9 } |
10 </style> | 10 </style> |
11 </head> | 11 </head> |
12 <body> | 12 <body> |
13 <h3>It passes if:</h3> | 13 <h3>It passes if:</h3> |
14 <ul> | 14 <ul> |
15 <li>the canvas content has rounded corners (bottom-left and top-right)</li
> | 15 <li>the canvas content has rounded corners (bottom-left and top-right)</li
> |
16 <li>the 10px gray background is visible around the canvas content</li> | 16 <li>the 10px gray background is visible around the canvas content</li> |
17 </ul> | 17 </ul> |
18 <canvas id="theCanvas" width="257" height="257"></canvas> | 18 <canvas id="theCanvas" width="257" height="257"></canvas> |
19 <script> | 19 <script> |
20 if (window.internals) { | 20 if (window.internals) { |
21 internals.settings.setAccelerated2dCanvasEnabled(true); | 21 internals.runtimeFlags.accelerated2dCanvasEnabled = true; |
22 } | 22 } |
23 var context = theCanvas.getContext('2d'); | 23 var context = theCanvas.getContext('2d'); |
24 context.fillStyle = 'green'; | 24 context.fillStyle = 'green'; |
25 context.fillRect(0, 0, theCanvas.width, theCanvas.width); | 25 context.fillRect(0, 0, theCanvas.width, theCanvas.width); |
26 </script> | 26 </script> |
27 </body> | 27 </body> |
28 </html> | 28 </html> |
OLD | NEW |