1 <script src=
"../../resources/js-test.js"></script>
4 testRunner
.dumpAsText();
7 .a { margin-left:
5px; }
8 .b { margin-left:inherit; }
9 .c { margin-left:
10px; }
12 <div class=
"" id=test1a
></div>
16 <div class=
"" id=test1b
></div>
20 <div class=
"b" id=test2a
></div>
24 <div class=
"b" id=test2b
></div>
28 <div class=
"b c" id=test3a
></div>
32 <div class=
"b c" id=test3b
></div>
36 Test that the matched declaration cache handles explicitly inherited properties correctly.
40 var testDiv
= document
.getElementById(e
);
41 return getComputedStyle(testDiv
).marginLeft
;
43 shouldBeEqualToString("test('test1a')", "0px");
44 shouldBeEqualToString("test('test1b')", "0px");
45 shouldBeEqualToString("test('test2a')", "5px");
46 shouldBeEqualToString("test('test2b')", "5px");
47 shouldBeEqualToString("test('test3a')", "10px");
48 shouldBeEqualToString("test('test3b')", "10px");