tor-browser

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

box-shadow-computed.html (964B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Backgrounds and Borders Module Level 3: getComputedStyle().boxShadow</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-backgrounds/#box-shadow">
      7 <meta name="assert" content="box-shadow computes to none or a list.">
      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    color: blue;
     14    font-size: 20px;
     15  }
     16 </style>
     17 </head>
     18 <body>
     19 <div id="target"></div>
     20 <script>
     21 'use strict';
     22 const currentColor = 'rgb(0, 0, 255)';
     23 test_computed_value('box-shadow', 'none');
     24 test_computed_value('box-shadow', '1px 2px', currentColor + ' 1px 2px 0px 0px');
     25 test_computed_value('box-shadow', 'currentcolor -1em -2em 3em -4em', currentColor + ' -20px -40px 60px -80px');
     26 test_computed_value('box-shadow', 'rgb(0, 255, 0) 1px 2px 3px 4px inset');
     27 </script>
     28 </body>
     29 </html>