tor-browser

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

left-computed.html (807B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Positioned Layout Module Level 3: getComputedStyle().left</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-position/#propdef-left">
      7 <meta name="assert" content="left lengths are made absolute.">
      8 <script src="/resources/testharness.js"></script>
      9 <script src="/resources/testharnessreport.js"></script>
     10 <script src="/css/support/computed-testcommon.js"></script>
     11 </head>
     12 <body>
     13 <div id="target"></div>
     14 <style>
     15  #target {
     16    font-size: 40px;
     17  }
     18 </style>
     19 <script>
     20 test_computed_value("left", "auto");
     21 
     22 test_computed_value("left", "calc(10px + 0.5em)", "30px");
     23 test_computed_value("left", "calc(10px - 0.5em)", "-10px");
     24 test_computed_value("left", "-40%");
     25 test_computed_value("left", "calc(50% + 60px)");
     26 </script>
     27 </body>
     28 </html>