| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../../resources/testharness.js"></script> | 2 <script src="../../../resources/testharness.js"></script> |
| 3 <script src="../../../resources/testharnessreport.js"></script> | 3 <script src="../../../resources/testharnessreport.js"></script> |
| 4 <div id="testContainer"> | 4 <div id="testContainer"> |
| 5 <div id="outer"> | 5 <div id="outer"> |
| 6 <div id="inner"> | 6 <div id="inner"> |
| 7 <div id="innermost"></div> | 7 <div id="innermost"></div> |
| 8 </div> | 8 </div> |
| 9 </div> | 9 </div> |
| 10 </div> | 10 </div> |
| 11 <script> | 11 <script> |
| 12 | 12 |
| 13 var independent_properties = [ | 13 var independent_properties = [ |
| 14 // Property name, Value 1, Value 2 | 14 // Property name, Value 1, Value 2 |
| 15 ["pointerEvents", "auto", "all"], | 15 ["pointerEvents", "auto", "all"], |
| 16 ["visibility", "visible", "hidden"], | 16 ["visibility", "visible", "hidden"], |
| 17 ["whiteSpace", "normal", "nowrap"], | 17 ["whiteSpace", "normal", "nowrap"], |
| 18 ["borderCollapse", "separate", "collapse"], | 18 ["borderCollapse", "separate", "collapse"], |
| 19 ["emptyCells", "show", "hide"], | 19 ["emptyCells", "show", "hide"], |
| 20 ["captionSide", "left", "right"], | 20 ["captionSide", "left", "right"], |
| 21 ["listStylePosition", "outside", "inside"], | 21 ["listStylePosition", "outside", "inside"], |
| 22 ["webkitBoxDirection", "normal", "reverse"], |
| 22 ]; | 23 ]; |
| 23 | 24 |
| 24 independent_properties.forEach(function(test_data) | 25 independent_properties.forEach(function(test_data) |
| 25 { | 26 { |
| 26 var propertyName = test_data[0]; | 27 var propertyName = test_data[0]; |
| 27 var value1 = test_data[1]; | 28 var value1 = test_data[1]; |
| 28 var value2 = test_data[2]; | 29 var value2 = test_data[2]; |
| 29 | 30 |
| 30 test(function(t) | 31 test(function(t) |
| 31 { | 32 { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 assert_equals(getComputedStyle(outer)[propertyName], value2); | 69 assert_equals(getComputedStyle(outer)[propertyName], value2); |
| 69 assert_equals(getComputedStyle(inner)[propertyName], value1); | 70 assert_equals(getComputedStyle(inner)[propertyName], value1); |
| 70 assert_equals(getComputedStyle(innermost)[propertyName], value1); | 71 assert_equals(getComputedStyle(innermost)[propertyName], value1); |
| 71 outer.offsetTop; // Force recalc. | 72 outer.offsetTop; // Force recalc. |
| 72 | 73 |
| 73 // Clear for next test. | 74 // Clear for next test. |
| 74 outer.remove(); | 75 outer.remove(); |
| 75 }, "Changing " + propertyName + ", an independent inherited property, propag
ates correctly with a single style recalc."); | 76 }, "Changing " + propertyName + ", an independent inherited property, propag
ates correctly with a single style recalc."); |
| 76 }) | 77 }) |
| 77 </script> | 78 </script> |
| OLD | NEW |