| OLD | NEW |
| 1 <sky> | 1 <sky> |
| 2 <import src="../resources/dump-as-render-tree.sky" /> | 2 <import src="../resources/dump-as-render-tree.sky" /> |
| 3 <style> | 3 <style> |
| 4 canvas { | 4 canvas { |
| 5 background-color: gray; | 5 background-color: gray; |
| 6 border: 10px solid red; | 6 border: 10px solid red; |
| 7 border-radius: 200px 100px 0px 0px; | 7 border-radius: 200px 100px 0px 0px; |
| 8 } | 8 } |
| 9 </style> | 9 </style> |
| 10 <!-- TODO(ojan): Make this a reftest. --> | 10 <!-- TODO(ojan): Make this a reftest. --> |
| 11 <h3>It passes if:</h3> | 11 <h3>It passes if:</h3> |
| 12 <ul> | 12 <ul> |
| 13 <li>the canvas content has rounded corners (top-left and top-right)</li> | 13 <li>the canvas content has rounded corners (top-left and top-right)</li> |
| 14 <li>the 10px red border is visible around the canvas content</li> | 14 <li>the 10px red border is visible around the canvas content</li> |
| 15 <li>gray border is not visible</li> | 15 <li>gray border is not visible</li> |
| 16 </ul> | 16 </ul> |
| 17 <canvas id="theCanvas" width="257" height="257"></canvas> | 17 <canvas id="theCanvas" width="257" height="257"></canvas> |
| 18 <script> | 18 <script> |
| 19 void main() { |
| 19 var theCanvas = document.getElementById('theCanvas'); | 20 var theCanvas = document.getElementById('theCanvas'); |
| 20 var context = theCanvas.getContext('2d'); | 21 var context = theCanvas.getContext('2d'); |
| 21 context.fillStyle = 'green'; | 22 context.fillColor = 'green'; |
| 22 context.fillRect(0, 0, theCanvas.width, theCanvas.width); | 23 context.fillRect(0, 0, theCanvas.width, theCanvas.width); |
| 24 } |
| 23 </script> | 25 </script> |
| 24 </sky> | 26 </sky> |
| OLD | NEW |