| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <html> | 2 <link rel="stylesheet" href="resources/svg_tests.css"> |
| 3 <head> | 3 <script src="resources/svg_canvas_helper.js"></script> |
| 4 <link rel="stylesheet" href="resources/svg_tests.css"> | 4 <script> |
| 5 <script src="resources/svg_canvas_helper.js"></script> | 5 if (window.testRunner) |
| 6 <script> | 6 testRunner.waitUntilDone(); |
| 7 if (window.testRunner) | 7 </script> |
| 8 testRunner.waitUntilDone(); | 8 <h2><a href="http://www.w3.org/html/wg/drafts/srcset/w3c-srcset">srcset</a> test
cases for SVG</h2> |
| 9 </script> | 9 <div class="test"> |
| 10 </head> | |
| 11 <body> | |
| 12 <h2><a href="http://www.w3.org/html/wg/drafts/srcset/w3c-srcset">srcset</a> te
stcases for SVG</h2> | |
| 13 <div class="test"> | |
| 14 <h3>Canvas relative SVG with explicit dimensions - 2x</h3> | 10 <h3>Canvas relative SVG with explicit dimensions - 2x</h3> |
| 15 <div class="expected">expected<br/> | 11 <div class="expected">expected<br/> |
| 16 <img id="svg10" src="" srcset="resources/relativesrcset.svg 2x" width="100
" height="50"> | 12 <img id="svg10" src="" srcset="resources/relativesrcset.svg 2x" width="1
00" height="50"> |
| 17 </div> | 13 </div> |
| 18 <div class="actual">actual<br/> | 14 <div class="actual">actual<br/> |
| 19 <canvas id="canvas6"></canvas> | 15 <canvas id="canvas6"></canvas> |
| 20 </div> | 16 </div> |
| 21 This test should show an SVG image drawn into a canvas. The canvas and image
should look the same and both should be 100x50.<br/> | 17 This test should show an SVG image drawn into a canvas. The canvas and image
should look the same and both should be 100x50.<br/> |
| 22 <br clear="all"/> | 18 <br clear="all"/> |
| 23 </div> | 19 </div> |
| 24 <script> | 20 <script> |
| 25 window.addEventListener('load', function(){ | 21 window.addEventListener('load', function(){ |
| 26 drawCanvas('svg10', 'canvas6', 100, 50); | 22 drawCanvas('svg10', 'canvas6', 100, 50); |
| 27 if (window.testRunner) | 23 if (window.testRunner) |
| 28 testRunner.notifyDone(); | 24 testRunner.notifyDone(); |
| 29 }); | 25 }); |
| 30 </script> | 26 </script> |
| 31 | |
| 32 </body> | |
| 33 </html> | |
| OLD | NEW |