tor-browser

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

justify-items-valid.html (1964B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Box Alignment Level 3: parsing justify-items with valid values</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-justify-items">
      7 <meta name="assert" content="justify-items supports the full grammar 'normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ] | legacy | legacy && [ left | right | center ]'.">
      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("justify-items", "normal");
     15 test_valid_value("justify-items", "stretch");
     16 
     17 // <baseline-position> = [ first | last ]? baseline
     18 test_valid_value("justify-items", "baseline");
     19 test_valid_value("justify-items", "first baseline", "baseline");
     20 test_valid_value("justify-items", "last baseline");
     21 
     22 // <overflow-position>? [ <self-position> | left | right ]
     23 // <overflow-position> = unsafe | safe
     24 // <self-position> = center | start | end | self-start | self-end | flex-start | flex-end
     25 test_valid_value("justify-items", "center");
     26 test_valid_value("justify-items", "start");
     27 test_valid_value("justify-items", "end");
     28 test_valid_value("justify-items", "self-start");
     29 test_valid_value("justify-items", "self-end");
     30 test_valid_value("justify-items", "flex-start");
     31 test_valid_value("justify-items", "flex-end");
     32 test_valid_value("justify-items", "unsafe center");
     33 test_valid_value("justify-items", "safe self-end");
     34 test_valid_value("justify-items", "right");
     35 test_valid_value("justify-items", "safe left");
     36 
     37 // legacy | legacy && [ left | right | center ]
     38 test_valid_value("justify-items", "legacy");
     39 test_valid_value("justify-items", "left legacy", "legacy left");
     40 test_valid_value("justify-items", "right legacy", "legacy right");
     41 test_valid_value("justify-items", "center legacy", "legacy center");
     42 </script>
     43 </body>
     44 </html>