gecko-dev/layout/reftests/position-relative/1115999-1.html
L. David Baron 527965d95c Bug 1115999 - Call ApplyRelativePositioning properly for some table cells that we choose not to reflow. r=roc
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
2014-12-28 19:42:54 -05:00

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>