mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-07 21:43:24 +00:00
527965d95c
I confirmed that the reftest passes with the patch and fails without the patch. This is the crazy codepath where nsTableRowFrame sets doReflowChild to true, and then tests some additional conditions, and based on those conditions decides to do part (but not all) of the work of reflowing the child. This is making relative and sticky positioning work correctly in that case, which we should really just get rid of, but which I don't want to deal with now. --HG-- extra : transplant_source : %B2%BE%A64%F1%5CG%25%BD%0F%BD%3E%94%80%24%86eEWv
29 lines
586 B
HTML
29 lines
586 B
HTML
<!DOCTYPE HTML>
|
|
<title>Testcase, bug 1115999</title>
|
|
<style>
|
|
html { overflow: hidden }
|
|
html, body { margin: 0; border: 0; }
|
|
table, tr, td { border: none; margin: 0; padding: 0; border-spacing: 0 }
|
|
</style>
|
|
|
|
<table>
|
|
<tr>
|
|
<td>o</td>
|
|
<td style="position: relative">two</td>
|
|
</tr>
|
|
</table>
|
|
<script>
|
|
|
|
document.body.offsetHeight;
|
|
|
|
var row = document.getElementsByTagName("tr")[0];
|
|
var cell = row.firstElementChild;
|
|
cell.textContent = "one";
|
|
|
|
document.body.offsetHeight;
|
|
|
|
// Force a call to nsTableFrame::SetGeometryDirty.
|
|
row.appendChild(document.createElement("td"));
|
|
|
|
</script>
|