tor-browser

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

block-step-valid.html (2636B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <title>CSS Rhythm: block-step valid values</title>
      5 <link rel="author" title="Tim Nguyen" href="https://github.com/nt1m">
      6 <link rel="help" href="https://drafts.csswg.org/css-rhythm/#block-step">
      7 <meta name="assert" content="Parsing valid values for block-step property">
      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    // Default values
     15    test_valid_value("block-step", "none");
     16    test_valid_value("block-step", "auto", "none");
     17    test_valid_value("block-step", "margin-box", "none");
     18    test_valid_value("block-step", "up", "none");
     19 
     20    test_valid_value("block-step", "none auto", "none");
     21    test_valid_value("block-step", "none margin-box", "none");
     22    test_valid_value("block-step", "none up", "none");
     23 
     24    test_valid_value("block-step", "auto none", "none");
     25    test_valid_value("block-step", "auto margin-box", "none");
     26    test_valid_value("block-step", "auto up", "none");
     27 
     28    test_valid_value("block-step", "margin-box none", "none");
     29    test_valid_value("block-step", "margin-box auto", "none");
     30    test_valid_value("block-step", "margin-box up", "none");
     31 
     32    test_valid_value("block-step", "up none", "none");
     33    test_valid_value("block-step", "up auto", "none");
     34    test_valid_value("block-step", "up margin-box", "none");
     35 
     36    test_valid_value("block-step", "auto up margin-box", "none");
     37    test_valid_value("block-step", "none auto up margin-box", "none");
     38 
     39    // Non-default values
     40    test_valid_value("block-step", "padding-box");
     41    test_valid_value("block-step", "content-box");
     42    test_valid_value("block-step", "100px");
     43    test_valid_value("block-step", "center");
     44    test_valid_value("block-step", "start");
     45    test_valid_value("block-step", "end");
     46    test_valid_value("block-step", "down");
     47    test_valid_value("block-step", "nearest");
     48 
     49    test_valid_value("block-step", "none padding-box up", "padding-box");
     50    test_valid_value("block-step", "content-box 100px up", "100px content-box");
     51    test_valid_value("block-step", "content-box start 100px", "100px content-box start");
     52    test_valid_value("block-step", "100px center down padding-box", "100px padding-box center down");
     53    test_valid_value("block-step", "start 100px", "100px start");
     54    test_valid_value("block-step", "end 100px", "100px end");
     55    test_valid_value("block-step", "end nearest 100px", "100px end nearest");
     56    test_valid_value("block-step", "center content-box 100px", "100px content-box center");
     57 </script>
     58 </body>
     59 </html>