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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/hidpi/image-set-as-background-with-zoom.html

Issue 1634023002: Use devicePixelRatio in image set (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 10 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
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="resources/srcset-helper.js"></script>
4 <style> 3 <style>
5 #foo { 4 #foo {
6 width:100px; 5 width:100px;
7 height:100px; 6 height:100px;
8 background-image: -webkit-image-set(url('resources/blue-100-px-square.pn g') 1x, url('resources/green-400-px-square.png') 2x); 7 background-image: -webkit-image-set(url('resources/blue-100-px-square.pn g') 1x, url('resources/green-400-px-square.png') 2x);
9 } 8 }
10 </style> 9 </style>
10 <script>
11 if (window.eventSender)
12 window.eventSender.zoomPageIn();
13 </script>
11 </head> 14 </head>
12 15
13 <body id="body"> 16 <body>
14 <div>This test passes if the div below is a blue 100px square when the devic eScaleFactor is 1, and if it is a 100px green square when the deviceScaleFactor is 2.</div> 17 <div>This test passes if the div below is a green square. </div>
15 <div id=foo></div> 18 <div id=foo></div>
16 </body> 19 </body>
17 </html> 20 </html>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/WebKit/Source/core/css/resolver/StyleResolverState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698