OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Media Queries - color-index media feature supported</title> | 4 <title>This test validates that the (color-index) media query feature is suppo
rted.</title> |
5 <link rel="author" title="Kenneth Christiansen" href="kenneth.r.christiansen@i
ntel.com"/> | 5 <link rel="author" title="Kenneth Christiansen" href="kenneth.r.christiansen@i
ntel.com"/> |
6 <link rel="help" href="http://www.w3.org/TR/css3-mediaqueries/#color-index"/> | 6 <link rel="help" href="http://www.w3.org/TR/css3-mediaqueries/#color-index"/> |
7 <script src="../../resources/testharness.js"></script> | 7 <script src="../../resources/testharness.js"></script> |
8 <script src="../../resources/testharnessreport.js"></script> | 8 <script src="../../resources/testharnessreport.js"></script> |
9 <script> | 9 <script> |
10 test(function(){ | 10 test(function(){ |
11 assert_equals(matchMedia('(min-color-index: 1)').matches, | 11 assert_equals(matchMedia('(min-color-index: 1)').matches, |
12 !matchMedia('(color-index: 0)').matches); | 12 !matchMedia('(color-index: 0)').matches); |
13 | 13 |
14 assert_equals(matchMedia('all and (color-index)').matches, | 14 assert_equals(matchMedia('all and (color-index)').matches, |
15 !matchMedia('not all and (color-index)').matches); | 15 !matchMedia('not all and (color-index)').matches); |
16 }, "('color-index') sanity check"); | 16 }, "('color-index') sanity check"); |
17 </script> | 17 </script> |
18 <head> | 18 <head> |
19 <body> | |
20 <h1>Description</h1> | |
21 <p>This tests validates that the (color-index) media query feature is supporte
d.</p> | |
22 </body> | |
23 </html> | 19 </html> |
OLD | NEW |