1 <script src=
"../../resources/js-test.js"></script>
4 testRunner
.dumpAsText();
13 Test that e matched declaration cache handles explicitly inherited properties correctly.
16 var shorthandNames
= [
18 "background-position",
23 // getPropertyValue() functionality not supported, see http://webkit.org/b/103245.
39 "webkit-border-after",
40 "webkit-border-before",
42 "webkit-border-start",
47 "webkit-marginCollapse",
50 "webkit-mask-position",
52 "webkit-text-emphasis",
55 "webkit-transform-origin"
58 var style
= document
.styleSheets
[0].rules
[0].style
;
59 function test(shorthand
) {
61 style
[shorthand
] = "inherit";
62 result
.push(style
[shorthand
]);
63 style
[shorthand
] = "initial";
64 result
.push(style
[shorthand
]);
65 return result
.join(", ");
68 for (var i
= 0; i
< shorthandNames
.length
; ++i
) {
69 shouldBeEqualToString("test('" + shorthandNames
[i
] + "')", "inherit, initial");