tor-browser

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

place-items-shorthand-002.html (1289B)


      1 <!DOCTYPE html>
      2 <title>CSS Box Alignment: place-items shorthand - multiple values specified</title>
      3 <link rel="author" title="Javier Fernandez" href="mailto:jfernandez@igalia.com" />
      4 <link rel="help" href="http://www.w3.org/TR/css3-align/#place-items-property" />
      5 <meta name="assert" content="Check that setting two values to place-items sets the first one to 'align-items' and the second one to 'justify-items'." />
      6 <script src="/resources/testharness.js"></script>
      7 <script src="/resources/testharnessreport.js"></script>
      8 <script src="/css/css-align/resources/alignment-parsing-utils.js"></script>
      9 <div id="log"></div>
     10 <script>
     11    let classes = Object.assign({"Normal":"normal", "Stretch":"stretch"}, selfPositionClasses, baselineClasses,
     12                                overflowClasses);
     13    for (var key1 in classes) {
     14        let alignValue = classes[key1];
     15        let classes2 = Object.assign({"Left":"left", "Right":"right"}, legacyClasses, classes);
     16        for (var key2 in classes2) {
     17           let justifyValue = classes2[key2];
     18           test(function() {
     19               checkPlaceShorhandLonghands("place-items", "align-items", "justify-items", alignValue, justifyValue);
     20           }, "Checking place-items: " + alignValue + " " + justifyValue);
     21        }
     22    }
     23 </script>