| <!DOCTYPE HTML> |
| <html> |
| <head> |
| <style> |
| canvas { |
| background-color: gray; |
| border-radius: 0px 200px 0px 200px; |
| padding: 10px; |
| } |
| </style> |
| </head> |
| <body> |
| <h3>It passes if:</h3> |
| <ul> |
| <li>the canvas content has rounded corners (bottom-left and top-right)</li> |
| <li>the 10px gray background is visible around the canvas content</li> |
| </ul> |
| <canvas id="theCanvas" width="257" height="257"></canvas> |
| <script> |
| if (window.internals) { |
| internals.settings.setAccelerated2dCanvasEnabled(true); |
| } |
| var context = theCanvas.getContext('2d'); |
| context.fillStyle = 'green'; |
| context.fillRect(0, 0, theCanvas.width, theCanvas.width); |
| </script> |
| </body> |
| </html> |