| OLD | NEW |
| 1 <html> | 1 <!DOCTYPE html> |
| 2 <script src="../../resources/testharness.js"></script> | 2 <script src="../../resources/testharness.js"></script> |
| 3 <script src="../../resources/testharnessreport.js"></script> | 3 <script src="../../resources/testharnessreport.js"></script> |
| 4 <head> | |
| 5 <style> | 4 <style> |
| 6 | 5 @media only screen and (-webkit-min-device-pixel-ratio: 1.0) { |
| 7 @media only screen and (-webkit-min-device-pixel-ratio: 1.0) { | 6 #foo { background-color: red; } |
| 8 #foo { background-color: red; } | 7 } |
| 9 } | 8 @media only screen and (-webkit-min-device-pixel-ratio: 1.1) { |
| 10 | 9 #foo { background-color: blue; } |
| 11 @media only screen and (-webkit-min-device-pixel-ratio: 1.1) { | 10 } |
| 12 #foo { background-color: blue; } | |
| 13 } | |
| 14 | |
| 15 </style> | 11 </style> |
| 16 </head> | 12 <div id=foo></div> |
| 17 <body id="body"> | |
| 18 <div id=foo></div> | |
| 19 </body> | |
| 20 <script> | 13 <script> |
| 21 if (window.eventSender) | 14 if (window.eventSender) |
| 22 window.eventSender.zoomPageIn(); | 15 window.eventSender.zoomPageIn(); |
| 23 | 16 test(function() { |
| 24 test(function() { | 17 var div = document.getElementById("foo"); |
| 25 var div = document.getElementById("foo"); | 18 var computedStyle = window.getComputedStyle(div, null); |
| 26 var computedStyle = window.getComputedStyle(div, null); | 19 assert_equals(computedStyle.getPropertyValue('background-color'), |
| 27 assert_equals(computedStyle.getPropertyValue('background-color'), | 20 'rgb(0, 0, 255)'); |
| 28 'rgb(0, 0, 255)'); | 21 }, "media query with zoom"); |
| 29 }, "media query with zoom"); | |
| 30 </script> | 22 </script> |
| 31 </html> | |
| OLD | NEW |