tor-browser

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

parse-justify-content-001.html (1715B)


      1 <!DOCTYPE html>
      2 <meta charset=utf-8>
      3 <title>Content Distribution: justify-content - setting values via CSS</title>
      4 <link rel="author" title="Javier Fernandez" href="mailto:jfernandez@igalia.com" />
      5 <link rel="help" href="https://drafts.csswg.org/css-align-3/#content-distribution" />
      6 <link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-justify-content" />
      7 <link rel="help" href="https://drafts.csswg.org/css-align-3/#typedef-content-position" />
      8 <link rel="help" href="https://drafts.csswg.org/css-align-3/#typedef-content-distribution" />
      9 <link rel="help" href="https://drafts.csswg.org/css-align-3/#typedef-baseline-position" />
     10 <link rel="help" href="https://drafts.csswg.org/css-align-3/#typedef-overflow-position" />
     11 <link rel="stylesheet" href="../../support/alignment.css" >
     12 <meta name="assert" content="Check that the computed value is the specified value and the JS value is empty."/>
     13 <script src="/resources/testharness.js"></script>
     14 <script src="/resources/testharnessreport.js"></script>
     15 <script src="/css/css-align/resources/alignment-parsing-utils.js"></script>
     16 <div id="log"></div>
     17 <script>
     18    let classes = Object.assign({"Normal":"normal", "Left":"left", "Right":"right"}, contentPositionClasses,
     19                                distributionClasses, overflowClasses);
     20 
     21    for (var key in classes) {
     22        let specifiedValue = classes[key];
     23        element = document.createElement("div");
     24        element.className = "justifyContent" + key;
     25        document.body.appendChild(element);
     26        test(function() {
     27            checkValues(element, "justifyContent", "justify-content", "", specifiedValue);
     28        }, "Checking justify-content: " + specifiedValue);
     29    }
     30 </script>