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..e216023605a3aef9dc7688d5d323211dacc373e6 |
--- /dev/null |
+++ b/LayoutTests/fast/css/getComputedStyle/getComputedStyle-all.html |
@@ -0,0 +1,37 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<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> |
+<script type="text/javascript"> |
+function getPropertyValueAll(id) |
+{ |
+ var ob = document.getElementById(id); |
+ return document.defaultView.getComputedStyle(ob, null).getPropertyValue('all'); |
esprehn
2014/05/30 00:59:22
you don't need this document.defaultView stuff. Ju
tasak
2014/06/04 09:37:40
Done.
|
+} |
+</script> |
+</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.'); |
+ |
+shouldBe('getPropertyValueAll("initial")', '""'); |
esprehn
2014/05/30 00:59:22
This can be much simpler, I'd just write:
'getCom
tasak
2014/06/04 09:37:40
Done.
|
+shouldBe('getPropertyValueAll("inherit")', '""'); |
esprehn
2014/05/30 00:59:22
shouldBeEqualToString()
tasak
2014/06/04 09:37:40
Done.
|
+shouldBe('getPropertyValueAll("invalid")', '""'); |
+shouldBe('getPropertyValueAll("notOnlyInitial")', '""'); |
+shouldBe('getPropertyValueAll("notOnlyInherit")', '""'); |
+</script> |
+</html> |