OLD | NEW |
1 <html> | 1 <!DOCTYPE html> |
2 <head> | |
3 <script src="resources/srcset-helper.js"></script> | 2 <script src="resources/srcset-helper.js"></script> |
4 <style> | 3 <style> |
5 #foo { | 4 #foo { |
6 content: -webkit-image-set(url('resources/blue-100-px-square.png') 1x, u
rl('resources/green-400-px-square.png') 2x); | 5 content: -webkit-image-set(url('resources/blue-100-px-square.png') 1x, u
rl('resources/green-400-px-square.png') 2x); |
7 } | 6 } |
8 </style> | 7 </style> |
9 </head> | 8 <div>This test passes if the div below is a blue 100px square when the deviceSca
leFactor is 1, and if it is a 200px green square when the deviceScaleFactor is 2
.</div> |
10 | 9 <div id=foo></div> |
11 <body id="body"> | |
12 <div>This test passes if the div below is a blue 100px square when the devic
eScaleFactor is 1, and if it is a 200px green square when the deviceScaleFactor
is 2.</div> | |
13 <div id=foo></div> | |
14 </body> | |
15 </html> | |
OLD | NEW |