Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / background-position-inherit.html
blobaa442c41d07b2de84878681ff852493d73e071bd
1 <div style="background-position: 25% 75%">
2 <div id="target" style="background-position: inherit;"></div>
3 </div>
4 <p>
5 This tests that <tt>background-position: inherit</tt> is applied correctly.
6 </p>
7 <p id="result">
8 </p>
9 <script>
10 if (window.testRunner)
11 testRunner.dumpAsText();
13 var targetBackgroundPosition = getComputedStyle(document.getElementById("target")).backgroundPosition,cssText;
15 document.getElementById("result").innerText = targetBackgroundPosition == "25% 75%" ? "PASS" : "FAIL: The inherited value was " + targetBackgroundPosition;
16 </script>