blob: 9627c16ef013b5ce6e4d560d61e6b9e061506b77 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>Media Queries - color-index media feature supported</title>
<link rel="author" title="Kenneth Christiansen" href="kenneth.r.christiansen@intel.com"/>
<link rel="help" href="http://www.w3.org/TR/css3-mediaqueries/#color-index"/>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script>
test(function(){
assert_equals(matchMedia('(min-color-index: 1)').matches,
!matchMedia('(color-index: 0)').matches);
assert_equals(matchMedia('all and (color-index)').matches,
!matchMedia('not all and (color-index)').matches);
}, "('color-index') sanity check");
</script>
<head>
<body>
<h1>Description</h1>
<p>This tests validates that the (color-index) media query feature is supported.</p>
</body>
</html>