Files
servo/tests/wpt/css-tests/cssom-view-1_dev/xhtml1/MediaQueryList-001.xht

22 lines
893 B
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>CSSOM View Module test:MediaQueryList</title>
<link href="mailto:tidelgl@gmail.com" rel="author" title="unbug" />
<link href="http://www.w3.org/TR/cssom-view/#the-mediaquerylist-interface" rel="help" />
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style type="text/css">
</style>
</head>
<body>
<p>This case tests the MediaQueryList
</p><p>The test passes if the value is 1280/800</p>
<div id="log"></div>
<script>
test(function(){
assert_equals(window.matchMedia('(device-aspect-ratio: 1280/800)').matches, true, "Expected value for device-aspect-ratio is 1280/800");
},'matchMedia');
</script>
</body></html>