4 <link rel="stylesheet" href="resources/svg_tests.css">
5 <script src="resources/svg_canvas_helper.js"></script>
8 <h2><a href="http://www.w3.org/html/wg/drafts/srcset/w3c-srcset">srcset</a> testcases for SVG</h2>
10 <h3>PNG without explicit dimensions - 1x</h3>
11 <div class="expected">expected<br/>
12 <img src="resources/srcset.png" width="200" height="100">
14 <div class="actual">actual<br/>
15 <img id="png1" src="resources/srcset.png">
17 This test should show a PNG image of size 200x100, and intrinsic/natural size 200x100. The left half of the image should be red and there should be a black circle in the center.<br/>
21 <h3>PNG with explicit dimensions - 1x</h3>
22 <div class="expected">expected<br/>
23 <img src="resources/srcset.png" width="100" height="50">
25 <div class="actual">actual<br/>
26 <img id="png2" src="resources/srcset.png" width="100" height="50">
28 This test should show a PNG image of size 100x50, and intrinsic/natural size 100x50. The left half of the image should be red and there should be a black circle in the center.<br/>
32 <h3>PNG without explicit dimensions - 2x</h3>
33 <div class="expected">expected<br/>
34 <img src="resources/srcset.png" width="100" height="50">
36 <div class="actual">actual<br/>
37 <img id="png3" src="" srcset="resources/srcset.png 2x">
39 This test should show a PNG image of size 100x50, and intrinsic/natural size 100x50. The left half of the image should be red and there should be a black circle in the center.<br/>
43 <h3>PNG with explicit dimensions - 4x</h3>
44 <div class="expected">expected<br/>
45 <img src="resources/srcset.png" width="100" height="50">
47 <div class="actual">actual<br/>
48 <img id="png4" src="" srcset="resources/srcset.png 4x" width="100" height="50">
50 This test should show a PNG image of size 100x50, and intrinsic/natural size 50x25. The left half of the image should be red and there should be a black circle in the center.<br/>