blob: 2f94c3b73b8e5ee4aa51f6a9d3e2b23572f69dc6 [file] [edit]
<!doctype html>
<html>
<head>
<title>Absolute child of positioned table row spans full row width</title>
<link rel="match" href="relative-position-row-multicell-expected.html">
<style>
body {
margin: 0;
}
table {
border-spacing: 0;
border-collapse: collapse;
border: none;
}
td {
padding: 0;
border: none;
}
</style>
</head>
<body>
<!-- The green div should cover the entire row (both cells). -->
<table>
<tr style="position: relative">
<td style="width: 100px; height: 50px">
Cell 1
<div style="position: absolute; inset: 0; background: green"></div>
</td>
<td style="width: 100px; height: 50px">Cell 2</td>
</tr>
</table>
</body>
</html>