| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../../http/tests/inspector/console-test.js"></script> | 4 <script src="../../http/tests/inspector/console-test.js"></script> |
| 5 <style> | 5 <style> |
| 6 @media | 6 @media |
| 7 only screen and ( min-resolution: 192dpi), | 7 only screen and ( min-resolution: 192dpi), |
| 8 only screen and ( min-resolution: 2dppx) { | 8 only screen and ( min-resolution: 2dppx) { |
| 9 /* No warning because dppx value used */ | 9 /* No warning because dppx value used */ |
| 10 } | 10 } |
| 11 </style> | 11 </style> |
| 12 <style> | 12 <style> |
| 13 @media | 13 @media |
| 14 only screen and ( min-resolution: 2dppx) | 14 only screen and ( min-resolution: 2dppx) |
| 15 only screen and ( min-resolution: 192dpi) { | 15 only screen and ( min-resolution: 192dpi) { |
| 16 /* No warning because dppx value used */ | 16 /* No warning because dppx value used */ |
| 17 } | 17 } |
| 18 </style> | 18 </style> |
| 19 <style> | |
| 20 @media | |
| 21 only screen and ( min-resolution: 192dpi) { | |
| 22 /* Warning */ | |
| 23 } | |
| 24 </style> | |
| 25 <script> | 19 <script> |
| 26 function test() | 20 function test() |
| 27 { | 21 { |
| 28 InspectorTest.dumpConsoleMessages(); | 22 InspectorTest.dumpConsoleMessages(); |
| 29 InspectorTest.completeTest(); | 23 InspectorTest.completeTest(); |
| 30 } | 24 } |
| 31 </script> | 25 </script> |
| 32 </head> | 26 </head> |
| 33 <body onload="runTest()"> | 27 <body onload="runTest()"> |
| 34 <p> | 28 <p> |
| 35 Tests warning on dpi values in media query (see http://crbug/336276). | 29 Tests warning on dpi values in media query (see http://crbug/336276). |
| 36 </p> | 30 </p> |
| 37 </body> | 31 </body> |
| 38 </html> | 32 </html> |
| OLD | NEW |