tor-browser

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

block-size-valid.html (1046B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Logical Properties and Values: parsing block-size with valid values</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-logical-1/#dimension-properties">
      7 <meta name="assert" content="block-size 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("block-size", "auto");
     15 
     16 test_valid_value("block-size", "10px");
     17 test_valid_value("block-size", "20%");
     18 test_valid_value("block-size", "calc(2em + 3ex)");
     19 
     20 test_valid_value("block-size", "min-content");
     21 test_valid_value("block-size", "max-content");
     22 
     23 // The following are not yet supported by browsers:
     24 // test_valid_value("block-size", "fit-content(100px)");
     25 // test_valid_value("block-size", "fit-content(calc(10% + 10px))");
     26 </script>
     27 </body>
     28 </html>