| 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 ["webkitBoxDirection", "normal", "reverse"], |
| 23 ["webkitPrintColorAdjust", "economy", "exact"], | 23 ["webkitPrintColorAdjust", "economy", "exact"], |
| 24 ["textAlign", "start", "left"], | |
| 25 ["textTransform", "capitalize", "uppercase"], | 24 ["textTransform", "capitalize", "uppercase"], |
| 26 ["webkitRtlOrdering", "logical", "visual"], | 25 ["webkitRtlOrdering", "logical", "visual"], |
| 27 ]; | 26 ]; |
| 28 | 27 |
| 29 independent_properties.forEach(function(test_data) | 28 independent_properties.forEach(function(test_data) |
| 30 { | 29 { |
| 31 var propertyName = test_data[0]; | 30 var propertyName = test_data[0]; |
| 32 var value1 = test_data[1]; | 31 var value1 = test_data[1]; |
| 33 var value2 = test_data[2]; | 32 var value2 = test_data[2]; |
| 34 | 33 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 assert_equals(getComputedStyle(outer)[propertyName], value2); | 72 assert_equals(getComputedStyle(outer)[propertyName], value2); |
| 74 assert_equals(getComputedStyle(inner)[propertyName], value1); | 73 assert_equals(getComputedStyle(inner)[propertyName], value1); |
| 75 assert_equals(getComputedStyle(innermost)[propertyName], value1); | 74 assert_equals(getComputedStyle(innermost)[propertyName], value1); |
| 76 outer.offsetTop; // Force recalc. | 75 outer.offsetTop; // Force recalc. |
| 77 | 76 |
| 78 // Clear for next test. | 77 // Clear for next test. |
| 79 outer.remove(); | 78 outer.remove(); |
| 80 }, "Changing " + propertyName + ", an independent inherited property, propag
ates correctly with a single style recalc."); | 79 }, "Changing " + propertyName + ", an independent inherited property, propag
ates correctly with a single style recalc."); |
| 81 }) | 80 }) |
| 82 </script> | 81 </script> |
| OLD | NEW |