tor-browser

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

parse-justify-content-003.html (1720B)


      1 <!DOCTYPE html>
      2 <meta charset=utf-8>
      3 <title>Content Disrtribution: justify-content - setting values via JS</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 <meta name="assert" content="Check that the computed value is the specified value and the same than the JS value."/>
     12 <script src="/resources/testharness.js"></script>
     13 <script src="/resources/testharnessreport.js"></script>
     14 <script src="/css/css-align/resources/alignment-parsing-utils.js"></script>
     15 <div id="log"></div>
     16 <script>
     17    element = document.createElement("div");
     18    document.body.appendChild(element);
     19 
     20    let classes = Object.assign({"Normal":"normal", "Left":"left", "Right":"right"}, contentPositionClasses,
     21                                distributionClasses, overflowClasses);
     22 
     23    for (var key in classes) {
     24        let specifiedValue = classes[key];
     25        test(function() {
     26            element.style.justifyContent = "";
     27            element.style.justifyContent = specifiedValue;
     28            checkValues(element, "justifyContent", "justify-content",  specifiedValue, specifiedValue);
     29        }, "Checking justify-content: " + specifiedValue);
     30    }
     31 </script>