tor-browser

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

box-shadow-offset-valid.html (968B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Borders and Box Decorations 4 Test: Parsing 'box-shadow-offset' with valid values</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 'box-shadow-offset' supports offset values.">
      7 <script src="/resources/testharness.js"></script>
      8 <script src="/resources/testharnessreport.js"></script>
      9 <script src="/css/support/parsing-testcommon.js"></script>
     10 
     11 <script>
     12 test_valid_value("box-shadow-offset", "0");
     13 test_valid_value("box-shadow-offset", "0 0");
     14 test_valid_value("box-shadow-offset", "1px 2px");
     15 test_valid_value("box-shadow-offset", "1em 2em");
     16 test_valid_value("box-shadow-offset", "-1px -2px");
     17 test_valid_value("box-shadow-offset", "calc(1em + 2px) calc(3rem + 4vw)");
     18 test_valid_value("box-shadow-offset", "1px 2px, 3px 4px");
     19 </script>