tor-browser

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

place-self-shorthand-002.html (1284B)


      1 <!DOCTYPE html>
      2 <title>CSS Box Alignment: place-self 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-self-property" />
      5 <meta name="assert" content="Check that setting two values to place-self sets the first one to 'align-self' and the second one to 'justify-self'." />
      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({"Auto":"auto", "Normal":"normal", "Stretch":"stretch"}, selfPositionClasses,
     12                                baselineClasses, overflowClasses);
     13    for (var key1 in classes) {
     14        let alignValue = classes[key1];
     15        let classes2 = Object.assign({"Left":"left", "Right":"right"}, classes);
     16        for (var key2 in classes2) {
     17            let justifyValue = classes2[key2];
     18            test(function() {
     19                checkPlaceShorhandLonghands("place-self", "align-self", "justify-self", alignValue, justifyValue);
     20            }, "Checking place-self: " + alignValue + " " + justifyValue);
     21        }
     22    }
     23 </script>