tor-browser

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

cssom-cssstyledeclaration-set.html (1195B)


      1 <!DOCTYPE html>
      2 <html>
      3    <head>
      4        <title>CSSOM: CSSStyleDeclaration on HTMLElement represents inline style changes</title>
      5        <link rel="author" title="Paul Irish" href="mailto:paul.irish@gmail.com">
      6        <link rel="help" href="http://www.w3.org/TR/cssom-1/#the-cssstyledeclaration-interface">
      7 
      8        <link rel="source" href="http://trac.webkit.org/export/120528/trunk/LayoutTests/fast/css/cssText-cache.html">
      9        <meta name="flags" content="dom">
     10 
     11        <script src="/resources/testharness.js"></script>
     12        <script src="/resources/testharnessreport.js"></script>
     13    </head>
     14 
     15    <body>
     16        <div id="log"></div>
     17 
     18        <div id="box"></div>
     19 
     20        <script>
     21 
     22          var style = document.getElementById('box').style;
     23 
     24          test(function(){
     25 
     26            style.left = "10px";
     27            assert_equals(style.left, "10px", 'left property set on element\'s CSSStyleDeclaration Object');
     28            style.left = "20px";
     29            assert_equals(style.left, "20px", 'left property set on element\'s CSSStyleDeclaration Object');
     30 
     31          }, 'CSSStyleDeclaration on HTMLElement represents inline style changes');
     32 
     33        </script>
     34 
     35 
     36    </body>
     37 </html>