OLD | NEW |
1 <script src="../../resources/js-test.js"></script> | 1 <script src="../../resources/js-test.js"></script> |
2 <script> | 2 <script> |
3 if (window.testRunner) | 3 if (window.testRunner) |
4 testRunner.dumpAsText(); | 4 testRunner.dumpAsText(); |
5 </script> | 5 </script> |
6 <style> | 6 <style> |
7 .a { margin-left:5px; } | 7 .a { margin-left:5px; } |
8 .b { margin-left:inherit; } | 8 .b { margin-left:inherit; } |
9 .c { margin-left:10px; } | 9 .c { margin-left:10px; } |
10 </style> | 10 </style> |
(...skipping 20 matching lines...) Expand all Loading... |
31 <div class=a> | 31 <div class=a> |
32 <div class="b c" id=test3b></div> | 32 <div class="b c" id=test3b></div> |
33 </div> | 33 </div> |
34 </div> | 34 </div> |
35 <p> | 35 <p> |
36 Test that the matched declaration cache handles explicitly inherited properties
correctly. | 36 Test that the matched declaration cache handles explicitly inherited properties
correctly. |
37 <p> | 37 <p> |
38 <script> | 38 <script> |
39 function test(e, p) { | 39 function test(e, p) { |
40 var testDiv = document.getElementById(e); | 40 var testDiv = document.getElementById(e); |
41 var cssValue = window.getComputedStyle(testDiv).getPropertyCSSValue(p); | 41 return getComputedStyle(testDiv).marginLeft; |
42 return cssValue.cssText; | |
43 } | 42 } |
44 shouldBeEqualToString("test('test1a', 'margin-left')", "0px"); | 43 shouldBeEqualToString("test('test1a')", "0px"); |
45 shouldBeEqualToString("test('test1b', 'margin-left')", "0px"); | 44 shouldBeEqualToString("test('test1b')", "0px"); |
46 shouldBeEqualToString("test('test2a', 'margin-left')", "5px"); | 45 shouldBeEqualToString("test('test2a')", "5px"); |
47 shouldBeEqualToString("test('test2b', 'margin-left')", "5px"); | 46 shouldBeEqualToString("test('test2b')", "5px"); |
48 shouldBeEqualToString("test('test3a', 'margin-left')", "10px"); | 47 shouldBeEqualToString("test('test3a')", "10px"); |
49 shouldBeEqualToString("test('test3b', 'margin-left')", "10px"); | 48 shouldBeEqualToString("test('test3b')", "10px"); |
50 </script> | 49 </script> |
OLD | NEW |