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