tor-browser

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

cssom-cssText-serialize.html (1119B)


      1 <!DOCTYPE html>
      2 <html>
      3    <head>
      4        <title>CSSOM Parsing Test: getting cssText must return the result of serializing the CSS declaration blocks.</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        <div id="box"></div>
     18        <script>
     19          test(function() {
     20            var style = document.getElementById('box').style;
     21            style.left = "10px";
     22            assert_equals(style.cssText, "left: 10px;");
     23            style.right = "20px";
     24            assert_equals(style.cssText, "left: 10px; right: 20px;");
     25          }, 'CSSStyleDeclaration cssText serializes declaration blocks.');
     26        </script>
     27    </body>
     28 </html>