OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../../resources/testharness.js"></script> |
| 3 <script src="../../../resources/testharnessreport.js"></script> |
| 4 <div id="outer" style="visibility: hidden;"> |
| 5 <div id="inner" style="visibility: inherit;"></div> |
| 6 </div> |
| 7 <script> |
| 8 test(function(t) |
| 9 { |
| 10 assert_equals(getComputedStyle(inner).visibility, "hidden"); |
| 11 |
| 12 outer.offsetTop; // Force recalc. |
| 13 outer.style.visibility = "visible"; |
| 14 assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 1); |
| 15 assert_equals(getComputedStyle(inner).visibility, "visible"); |
| 16 |
| 17 }, "Changing visibility, an independent inherited property, propagates correctly
when using the 'inherit' keyword."); |
| 18 </script> |
| 19 |
| 20 |
| 21 |
| 22 |
OLD | NEW |