Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Side by Side Diff: LayoutTests/fast/hidpi/image-srcset-svg-canvas.html

Issue 25105004: Use srcset's resource pixel density to determine intrinsic size (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cleantests
Patch Set: Fixed crash+rebased Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <link rel="stylesheet" href="resources/svg_tests.css">
5 <script src="resources/svg_canvas_helper.js"></script>
6 <script>
7 if (window.testRunner)
8 testRunner.waitUntilDone();
9 </script>
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 SVG without explicit dimensions - 1x</h3>
15 <div class="expected">expected<br/>
16 <img id="svg7" src="" srcset="resources/srcset.svg">
17 </div>
18 <div class="actual">actual<br/>
19 <canvas id="canvas1"></canvas>
20 </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 200x100.<br/>
22 <code class="stats" id="code11"></code>
23 <br clear="all"/>
24 </div>
25 <script>
26 window.addEventListener('load', function(){
27 drawCanvas('svg7', 'canvas1', 200, 100);
28 printSizes('svg7', 'code11');
29 if (window.testRunner)
30 testRunner.notifyDone();
31 });
32 </script>
33 </body>
34 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/hidpi/image-srcset-svg.html ('k') | LayoutTests/fast/hidpi/image-srcset-svg-canvas-2x.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698