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

Unified Diff: LayoutTests/fast/css/getComputedStyle/getComputedStyle-all.html

Issue 216803002: Implement all shorthand property. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
Index: LayoutTests/fast/css/getComputedStyle/getComputedStyle-all.html
diff --git a/LayoutTests/fast/css/getComputedStyle/getComputedStyle-all.html b/LayoutTests/fast/css/getComputedStyle/getComputedStyle-all.html
new file mode 100644
index 0000000000000000000000000000000000000000..85edeb87dd356ce9f0b573f062cbeab6ba19314d
--- /dev/null
+++ b/LayoutTests/fast/css/getComputedStyle/getComputedStyle-all.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html>
+<head>
esprehn 2014/06/12 00:36:44 ditto
+<script src="../../../resources/js-test.js"></script>
+<style>
+#initial { all: initial; }
+#inherit { all: inherit; }
+#invalid { all: green; }
+#notOnlyInitial { all: initial; color: green; }
+#notOnlyInherit { all: inherit; color: green; }
+</style>
+</head>
+<body>
+ <div id="initial"></div>
+ <div id="inherit"></div>
+ <div id="invalid"></div>
+ <div id="notOnlyInitial"></div>
+ <div id="notOnlyInherit"></div>
+ <pre id="console"></pre>
+</body>
+<script>
+description('Test calling getPropertyValue on computed styles for all shorthand property.');
+
+shouldBeEqualToString('getComputedStyle(document.getElementById("initial")).all', "");
+shouldBeEqualToString('getComputedStyle(document.getElementById("inherit")).all', "");
+shouldBeEqualToString('getComputedStyle(document.getElementById("invalid")).all', "");
+shouldBeEqualToString('getComputedStyle(document.getElementById("notOnlyInitial")).all', "");
+shouldBeEqualToString('getComputedStyle(document.getElementById("notOnlyInherit")).all', "");
+</script>
+</html>

Powered by Google App Engine
This is Rietveld 408576698