tor-browser

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

place-self-computed.html (1439B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Box Alignment Level 3: getComputedStyle().placeSelf</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-place-self">
      7 <meta name="assert" content="place-self computed value is as specified.">
      8 <script src="/resources/testharness.js"></script>
      9 <script src="/resources/testharnessreport.js"></script>
     10 <script src="/css/support/computed-testcommon.js"></script>
     11 </head>
     12 <body>
     13 <div id="target"></div>
     14 <script>
     15 test_computed_value("place-self", "auto auto", "auto");
     16 test_computed_value("place-self", "normal");
     17 test_computed_value("place-self", "stretch");
     18 
     19 test_computed_value("place-self", "first baseline", "baseline");
     20 test_computed_value("place-self", "last baseline last baseline", "last baseline");
     21 
     22 test_computed_value("place-self", "center center", "center");
     23 test_computed_value("place-self", "start");
     24 test_computed_value("place-self", "self-start");
     25 test_computed_value("place-self", "flex-end");
     26 test_computed_value("place-self", "unsafe center");
     27 test_computed_value("place-self", "safe self-end safe self-end", "safe self-end");
     28 
     29 test_computed_value("place-self", "auto last baseline");
     30 test_computed_value("place-self", "baseline flex-end");
     31 test_computed_value("place-self", "unsafe center stretch");
     32 
     33 test_computed_value("place-self", "normal right");
     34 test_computed_value("place-self", "baseline unsafe left");
     35 </script>
     36 </body>
     37 </html>