tor-browser

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

background-336.html (1327B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <title>CSS Backgrounds and Borders Test: background shorthand - two &lt;box&gt; values</title>
      5    <link rel="author" title="Intel" href="http://www.intel.com" />
      6    <link rel="help" href="http://www.w3.org/TR/css3-background/#the-background" />
      7    <meta name="flags" content="dom" />
      8    <meta name="assert" content="Check if two <box> values are present, then the first sets 'background-origin' and the second 'background-clip'" />
      9    <style>
     10        #test {
     11            background: border-box padding-box;
     12        }
     13    </style>
     14    <script src="/resources/testharness.js"></script>
     15    <script src="/resources/testharnessreport.js"></script>
     16  </head>
     17  <body>
     18    <div id="log"></div>
     19    <div id="test"></div>
     20    <script>
     21        var cs = getComputedStyle(document.getElementById("test"), null);
     22 
     23        test(function() {
     24            assert_equals(cs.getPropertyValue("background-origin"),
     25                "border-box", "background specified value for background-origin");
     26        }, "background_specified_box_two_origin");
     27 
     28        test(function() {
     29            assert_equals(cs.getPropertyValue("background-clip"),
     30                "padding-box", "background specified value for background-clip");
     31        }, "background_specified_box_two_clip");
     32    </script>
     33  </body>
     34 </html>