tor-browser

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

gap-valid.html (945B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Box Alignment Level 3: parsing gap with valid values</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-gap">
      7 <meta name="assert" content="row-gap supports the full grammar '<row-gap> <column-gap>?'.">
      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("gap", "normal normal", "normal");
     15 test_valid_value("gap", "10px 10px", "10px");
     16 test_valid_value("gap", "20% 20%", "20%");
     17 test_valid_value("gap", "calc(20% + 10px) calc(20% + 10px)", "calc(20% + 10px)");
     18 
     19 test_valid_value("gap", "normal 10px");
     20 test_valid_value("gap", "10px 20%");
     21 test_valid_value("gap", "20% calc(20% + 10px)");
     22 test_valid_value("gap", "calc(20% + 10px) 0px");
     23 test_valid_value("gap", "0px normal");
     24 </script>
     25 </body>
     26 </html>