tor-browser

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

scroll-margin-block-inline-computed.html (1564B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Scroll Snap: getComputedStyle().scrollMarginBlock / scrollMarginInline</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-scroll-snap-1/#margin-longhands-logical">
      7 <meta name="assert" content="scroll-margin-block, scroll-margin-inline computed value is absolute length.">
      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("scroll-margin-block-start", "10px");
     21 test_computed_value("scroll-margin-block-start", "calc(10px - 0.5em)", "-10px");
     22 
     23 test_computed_value("scroll-margin-block-end", "10px");
     24 test_computed_value("scroll-margin-block-end", "calc(10px - 0.5em)", "-10px");
     25 
     26 test_computed_value("scroll-margin-inline-start", "10px");
     27 test_computed_value("scroll-margin-inline-start", "calc(10px - 0.5em)", "-10px");
     28 
     29 test_computed_value("scroll-margin-inline-end", "10px");
     30 test_computed_value("scroll-margin-inline-end", "calc(10px - 0.5em)", "-10px");
     31 
     32 
     33 test_computed_value("scroll-margin-block", "10px");
     34 test_computed_value("scroll-margin-block", "calc(10px - 0.5em)", "-10px");
     35 test_computed_value("scroll-margin-block", "1px 2px");
     36 
     37 test_computed_value("scroll-margin-inline", "10px");
     38 test_computed_value("scroll-margin-inline", "calc(10px - 0.5em)", "-10px");
     39 test_computed_value("scroll-margin-inline", "1px 2px");
     40 </script>
     41 </body>
     42 </html>