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

Unified Diff: LayoutTests/fast/css/getComputedStyle/getComputedStyle-background-position-calc.html

Issue 23651010: Fix getComputedStyle background-position to output calc values (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update test and cleanup the patch Created 7 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/css/getComputedStyle/getComputedStyle-background-position-calc-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/getComputedStyle/getComputedStyle-background-position-calc.html
diff --git a/LayoutTests/fast/css/getComputedStyle/getComputedStyle-background-position-calc.html b/LayoutTests/fast/css/getComputedStyle/getComputedStyle-background-position-calc.html
new file mode 100644
index 0000000000000000000000000000000000000000..8ef9328c67f1fb6f5a2b068b1eaee0ccf00d7dbc
--- /dev/null
+++ b/LayoutTests/fast/css/getComputedStyle/getComputedStyle-background-position-calc.html
@@ -0,0 +1,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>
« no previous file with comments | « no previous file | LayoutTests/fast/css/getComputedStyle/getComputedStyle-background-position-calc-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698