tor-browser

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

flexbox_computedstyle_flex-shorthand-number.html (770B)


      1 <!DOCTYPE html>
      2 <title>flexbox | computed style | flex: number</title>
      3 <link rel="author" href="http://opera.com" title="Opera Software">
      4 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-property">
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/resources/testharnessreport.js"></script>
      7 <meta name="flags" content="dom">
      8 <style>
      9 body {
     10 color: red;
     11 flex: 666;
     12 }
     13 </style>
     14 <div id="log"></div>
     15 <script>
     16 test(function() {
     17    var body = document.body;
     18 
     19    assert_equals(getComputedStyle(body).getPropertyValue("flex-grow"),
     20           "666");
     21    assert_equals(getComputedStyle(body).getPropertyValue("flex-shrink"),
     22           "1");
     23    assert_equals(getComputedStyle(body).getPropertyValue("flex-basis"),
     24           "0%");
     25 });
     26 </script>