4 <title>Media Queries - viewport units support
</title>
5 <script src=
"../../resources/testharness.js"></script>
6 <script src=
"../../resources/testharnessreport.js"></script>
9 assert_true(matchMedia('(max-width: 100vw)').matches
);
10 }, "vw unit sanity check");
12 assert_true(matchMedia('(max-height: 100vh)').matches
);
13 }, "vh unit sanity check");
15 assert_true(matchMedia('(max-width: 100vmax)').matches
);
16 }, "vmax unit sanity check");
18 assert_true(matchMedia('(max-height: 100vmin)').matches
);
19 }, "vmin unit sanity check");
24 <p>This tests validates that the viewport units work in media queries.
</p>