summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/cssom/cssom-cssstyledeclaration-set.html
blob: 1fb7ccd32499bb5ee55ce49e1189d6f073212a30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<html>
    <head>
        <title>CSSOM: CSSStyleDeclaration on HTMLElement represents inline style changes</title>
        <link rel="author" title="Paul Irish" href="mailto:paul.irish@gmail.com">
        <link rel="help" href="http://www.w3.org/TR/cssom-1/#the-cssstyledeclaration-interface">

        <link rel="source" href="http://trac.webkit.org/export/120528/trunk/LayoutTests/fast/css/cssText-cache.html">
        <meta name="flags" content="dom">

        <script src="/resources/testharness.js"></script>
        <script src="/resources/testharnessreport.js"></script>
    </head>

    <body>
        <div id="log"></div>

        <div id="box"></div>

        <script>

          var style = document.getElementById('box').style;

          test(function(){

            style.left = "10px";
            assert_equals(style.left, "10px", 'left property set on element\'s CSSStyleDeclaration Object');
            style.left = "20px";
            assert_equals(style.left, "20px", 'left property set on element\'s CSSStyleDeclaration Object');

          }, 'CSSStyleDeclaration on HTMLElement represents inline style changes');

        </script>


    </body>
</html>