tor-browser

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

height-valid.html (1036B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Intrinsic & Extrinsic Sizing Test: parsing height with valid values</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-sizing-3/#propdef-height">
      7 <meta name="assert" content="height supports the full grammar 'auto | <length-percentage> | min-content | max-content | fit-content(<length-percentage>)'.">
      8 <script src="/resources/testharness.js"></script>
      9 <script src="/resources/testharnessreport.js"></script>
     10 <script src="/css/support/parsing-testcommon.js"></script>
     11 </head>
     12 <body>
     13 <script>
     14 test_valid_value("height", "auto");
     15 test_valid_value("height", "min-content");
     16 test_valid_value("height", "max-content");
     17 
     18 test_valid_value("height", "0", "0px");
     19 test_valid_value("height", "10%");
     20 test_valid_value("height", "0.5em");
     21 test_valid_value("height", "calc(10% - 0.5em)");
     22 
     23 test_valid_value("height", "fit-content(10%)");
     24 test_valid_value("height", "fit-content(0.5em)");
     25 test_valid_value("height", "fit-content(calc(10% - 0.5em))");
     26 </script>
     27 </body>
     28 </html>