summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css/getComputedStyle/getComputedStyle-background-position-calc.html
blob: 8ef9328c67f1fb6f5a2b068b1eaee0ccf00d7dbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<html>
<head>
    <script type="text/javascript">

        function runTests()
        {
            if (window.testRunner)
                testRunner.dumpAsText();
            var pre = document.querySelector('pre');
            pre.style.backgroundPosition = 'left calc(10% + 20px) bottom calc(30px + 40%)';
            pre.innerText += getComputedStyle(pre).backgroundPosition;
        }
    </script>
</head>
<body onload="runTests();">
    <p>Test calling on background-position property specified with calc on computed styles.</p>
    <pre id="console"></pre>
</body>
</html>