blob: 88d392d311d657762e2bc604d8fa6513d17fc5a8 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>This tests validate that the viewport units work in media queries.</title>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script>
test(function(){
assert_true(matchMedia('(max-width: 100vw)').matches);
}, "vw unit sanity check");
test(function(){
assert_true(matchMedia('(max-height: 100vh)').matches);
}, "vh unit sanity check");
test(function(){
assert_true(matchMedia('(max-width: 100vmax)').matches);
}, "vmax unit sanity check");
test(function(){
assert_true(matchMedia('(max-height: 100vmin)').matches);
}, "vmin unit sanity check");
</script>
</head>
</html>