| 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 -webkit-transform: translateZ(0); | 9 transform: translateZ(0); |
| 10 } | 10 } |
| 11 </style> | 11 </style> |
| 12 </head> | 12 </head> |
| 13 <body> | 13 <body> |
| 14 <h3>It passes if:</h3> | 14 <h3>It passes if:</h3> |
| 15 <ul> | 15 <ul> |
| 16 <li>the canvas content has rounded corners (bottom-left and top-right)</li
> | 16 <li>the canvas content has rounded corners (bottom-left and top-right)</li
> |
| 17 <li>the 10px gray background is visible around the canvas content</li> | 17 <li>the 10px gray background is visible around the canvas content</li> |
| 18 </ul> | 18 </ul> |
| 19 <canvas id="theCanvas" width="257" height="257"></canvas> | 19 <canvas id="theCanvas" width="257" height="257"></canvas> |
| 20 <script> | 20 <script> |
| 21 if (window.internals) { | 21 if (window.internals) { |
| 22 internals.settings.setAccelerated2dCanvasEnabled(false); | 22 internals.settings.setAccelerated2dCanvasEnabled(false); |
| 23 } | 23 } |
| 24 var context = theCanvas.getContext('2d'); | 24 var context = theCanvas.getContext('2d'); |
| 25 context.fillStyle = 'green'; | 25 context.fillStyle = 'green'; |
| 26 context.fillRect(0, 0, theCanvas.width, theCanvas.width); | 26 context.fillRect(0, 0, theCanvas.width, theCanvas.width); |
| 27 </script> | 27 </script> |
| 28 </body> | 28 </body> |
| 29 </html> | 29 </html> |
| OLD | NEW |