blob: 4ea8fae04aa3cfec33e1d3fae4796bf14a691b1c [file] [log] [blame]
<!DOCTYPE html>
<style>
table {
width:100px;
}
td {
background:red;
}
</style>
<p>crbug.com/778682: Don't clear intrinsic padding when the cell child doesn't need a layout.</p>
<table><tr>
<td>aaaaaaaaaaa aaaaaaaaaaa aaaaaaaaaaa </td>
<td><br/><a id="target" href="#">Click</a></td></tr>
</table>
<script src="../forms/resources/common.js"></script>
<script>
document.body.offsetTop;
// The click triggers a layout on the table but because the width
// of the cells hasn't changed their children don't get a layout.
// This is required to reproduce the bug.
clickElement(document.getElementById('target'));
</script>
</body>