| OLD | NEW |
| 1 <div style="background-position: 25% 75%"> | 1 <div style="background-position: 25% 75%"> |
| 2 <div id="target" style="background-position: inherit;"></div> | 2 <div id="target" style="background-position: inherit;"></div> |
| 3 </div> | 3 </div> |
| 4 <p> | 4 <p> |
| 5 This tests that <tt>background-position: inherit</tt> is applied correctly. | 5 This tests that <tt>background-position: inherit</tt> is applied correctly. |
| 6 </p> | 6 </p> |
| 7 <p id="result"> | 7 <p id="result"> |
| 8 </p> | 8 </p> |
| 9 <script> | 9 <script> |
| 10 if (window.testRunner) | 10 if (window.testRunner) |
| 11 testRunner.dumpAsText(); | 11 testRunner.dumpAsText(); |
| 12 | 12 |
| 13 var targetBackgroundPosition = getComputedStyle(document.getElementById("tar
get")).backgroundPosition,cssText; | 13 var targetBackgroundPosition = getComputedStyle(document.getElementById("tar
get")).backgroundPosition,cssText; |
| 14 | 14 |
| 15 document.getElementById("result").innerText = targetBackgroundPosition == "2
5% 75%" ? "PASS" : "FAIL: The inherited value was " + targetBackgroundPosition; | 15 document.getElementById("result").innerText = targetBackgroundPosition == "l
eft 25% top 75%" ? "PASS" : "FAIL: The inherited value was " + targetBackgroundP
osition; |
| 16 </script> | 16 </script> |
| OLD | NEW |