tor-browser

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

box-shadow-offset-computed.html (1002B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Borders and Box Decorations 4 Test: Computed values of 'box-shadow-offset'</title>
      4 <link rel="author" title="Sebastian Zartner" href="mailto:sebastianzartner@gmail.com">
      5 <link rel="help" href="https://drafts.csswg.org/css-borders-4/#box-shadow-offset">
      6 <meta name="assert" content="This test checks that the computed value of 'box-shadow-offset' is correct.">
      7 <script src="/resources/testharness.js"></script>
      8 <script src="/resources/testharnessreport.js"></script>
      9 <script src="/css/support/computed-testcommon.js"></script>
     10 
     11 <div id="target"></div>
     12 
     13 <script>
     14 test_computed_value("box-shadow-offset", "0 0", "0px");
     15 test_computed_value("box-shadow-offset", "10px 0");
     16 test_computed_value("box-shadow-offset", "0 10px");
     17 test_computed_value("box-shadow-offset", "10px 10px", "10px");
     18 test_computed_value("box-shadow-offset", "10px 20px, 30px 40px");
     19 test_computed_value("box-shadow-offset", "calc(1em + 1px) calc(-1em + 1px)", "17px -15px");
     20 </script>