summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css/background-position-inherit.html
blob: aa442c41d07b2de84878681ff852493d73e071bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<div style="background-position: 25% 75%">
    <div id="target" style="background-position: inherit;"></div>
</div>
<p>
    This tests that <tt>background-position: inherit</tt> is applied correctly.
</p>
<p id="result">
</p>
<script>
    if (window.testRunner)
        testRunner.dumpAsText();

    var targetBackgroundPosition = getComputedStyle(document.getElementById("target")).backgroundPosition,cssText;

    document.getElementById("result").innerText = targetBackgroundPosition == "25% 75%" ? "PASS" : "FAIL: The inherited value was " + targetBackgroundPosition;
</script>