tor-browser

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

inset-block-inline-computed.html (1302B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Logical Properties and Values: getComputedStyle().insetBlock / insetInline</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-logical/#propdef-inset-block">
      7 <meta name="assert" content="Computed value is as specified, with lengths 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 <style>
     12  #target {
     13    font-size: 40px;
     14  }
     15 </style>
     16 </head>
     17 <body>
     18 <div id="target"></div>
     19 <script>
     20 test_computed_value("inset-block-start", "auto");
     21 test_computed_value("inset-block-end", "-10px");
     22 test_computed_value("inset-inline-start", "-20%");
     23 test_computed_value("inset-inline-end", "calc(10px - 0.5em)", "-10px");
     24 
     25 test_computed_value("inset-block", "auto");
     26 test_computed_value("inset-block", "-10px");
     27 test_computed_value("inset-block", "calc(10px - 0.5em) -20%", "-10px -20%");
     28 test_computed_value("inset-block", "auto auto", "auto");
     29 test_computed_value("inset-inline", "-20%");
     30 test_computed_value("inset-inline", "calc(10px - 0.5em)", "-10px");
     31 test_computed_value("inset-inline", "-10px auto");
     32 test_computed_value("inset-inline", "auto calc(10px + 0.5em)", "auto 30px");
     33 </script>
     34 </body>
     35 </html>