Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: LayoutTests/fast/css/background-position-inherit.html

Issue 38573003: Use 4 value syntax for getComputedStyle of background-position and -webkit-mask-position (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698