OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 | 5 |
6 <div id="detector"></div> | 6 <div id="detector"></div> |
7 | 7 |
8 <style> | 8 <style> |
9 #detector { width: 100px; } | 9 #detector { width: 100px; } |
10 @media (resolution: 1.00dppx) { #detector { width: 10px; } } | 10 @media (resolution: 1.00dppx) { #detector { width: 10px; } } |
11 @media (resolution: 1.50dppx) { #detector { width: 15px; } } | 11 @media (resolution: 1.50dppx) { #detector { width: 15px; } } |
12 @media (resolution: 2.00dppx) { #detector { width: 20px; } } | 12 @media (resolution: 2.00dppx) { #detector { width: 20px; } } |
13 @media (resolution: 2.25dppx) { #detector { width: 23px; } } | 13 @media (resolution: 2.25dppx) { #detector { width: 23px; } } |
14 @media print and (min-resolution: 3dppx) { #detector { width: 30px; } } | 14 @media print and (min-resolution: 3dppx) { #detector { width: 30px; } } |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 shouldBe("resolutionFromStyle()", "3"); | 83 shouldBe("resolutionFromStyle()", "3"); |
84 | 84 |
85 // As well as those matching 'all'. | 85 // As well as those matching 'all'. |
86 appendMediaRule("@media (resolution: 3.125dppx) { #detector { width: 31p
x; } }"); | 86 appendMediaRule("@media (resolution: 3.125dppx) { #detector { width: 31p
x; } }"); |
87 shouldBe("resolutionFromStyle()", "3.125"); | 87 shouldBe("resolutionFromStyle()", "3.125"); |
88 } | 88 } |
89 </script> | 89 </script> |
90 | 90 |
91 </body> | 91 </body> |
92 </html> | 92 </html> |
OLD | NEW |