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="../js/resources/js-test-pre.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; } } |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 | 81 |
82 // Should match the one requiring 'print' media type. | 82 // Should match the one requiring 'print' media type. |
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 <script src="../js/resources/js-test-post.js"></script> | |
92 </body> | 91 </body> |
93 </html> | 92 </html> |
OLD | NEW |