tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

viewport-units-parsing.html (720B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Values: parsing width with valid viewport units</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-values-4/#viewport-relative-lengths">
      7 <script src="/resources/testharness.js"></script>
      8 <script src="/resources/testharnessreport.js"></script>
      9 <script src="/css/support/parsing-testcommon.js"></script>
     10 </head>
     11 <body>
     12 <script>
     13 const prefixes = ["", "s", "l", "d"];
     14 const suffixes = ["vw", "vh", "vi", "vb", "vmin", "vmax"];
     15 const units = [];
     16 
     17 for (const prefix of prefixes) {
     18  for (const suffix of suffixes) {
     19    units.push(prefix + suffix);
     20  }
     21 }
     22 
     23 for (const unit of units) {
     24  test_valid_value("width", "1" + unit);
     25 }
     26 </script>
     27 </body>
     28 </html>