| 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');
|
| +}
|
| +</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")', '""');
|
| +shouldBe('getPropertyValueAll("inherit")', '""');
|
| +shouldBe('getPropertyValueAll("invalid")', '""');
|
| +shouldBe('getPropertyValueAll("notOnlyInitial")', '""');
|
| +shouldBe('getPropertyValueAll("notOnlyInherit")', '""');
|
| +</script>
|
| +</html>
|
|
|