| <script src="../js/resources/js-test-pre.js"></script> |
| <div style="height: 300px"> |
| <table border="1" style="height: 100%"> |
| <tr id="firstRow"><td></td></tr> |
| <tr class="filler"><td></td></tr> |
| function toggleSmallRows() |
| var table = document.querySelector("table") |
| table.classList.add("small"); |
| table.classList.remove("small"); |
| description("Regression(99212): table rows get incorrect height after changing some cells' height<br>https://bugs.webkit.org/show_bug.cgi?id=74303"); |
| firstRow = document.getElementById("firstRow"); |
| shouldBe("getComputedStyle(firstRow, '').getPropertyValue('height')", "'40px'"); |
| shouldBe("getComputedStyle(firstRow, '').getPropertyValue('height')", "'20px'"); |
| shouldBe("getComputedStyle(firstRow, '').getPropertyValue('height')", "'40px'"); |
| <script src="../js/resources/js-test-post.js"></script> |