tor-browser

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

max-height-invalid.html (1297B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS basic box model: parsing max-height with invalid values</title>
      6 <link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
      7 <link rel="help" href="https://drafts.csswg.org/css-box-3/#propdef-max-height">
      8 <meta name="assert" content="max-height supports only the grammar '[ [<length> | <percentage>] && [border-box | content-box]? ] | available | min-content | max-content | fit-content | none'.">
      9 <script src="/resources/testharness.js"></script>
     10 <script src="/resources/testharnessreport.js"></script>
     11 <script src="/css/support/parsing-testcommon.js"></script>
     12 </head>
     13 <body>
     14 <script>
     15 test_invalid_value("max-height", "complex");
     16 test_invalid_value("max-height", "auto");
     17 test_invalid_value("max-height", "none available");
     18 test_invalid_value("max-height", "max-content 10px");
     19 test_invalid_value("max-height", "20% available");
     20 
     21 test_invalid_value("max-height", "-10px");
     22 test_invalid_value("max-height", "-20%");
     23 test_invalid_value("max-height", "60");
     24 test_invalid_value("max-height", "10px 20%");
     25 test_invalid_value("max-height", "content-box border-box");
     26 test_invalid_value("max-height", "10px border-box 20%");
     27 test_invalid_value("max-height", "content-box 20% border-box");
     28 </script>
     29 </body>
     30 </html>