chromium/third_party/blink/web_tests/fast/media/mq-viewport-units.html

<!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>