Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>Overflow hidden and captions</title>
<link rel="author" title="Aleks Totic" href="atotic@chromium.org" />
<link rel="match" href="overflow-hidden-table-ref.html" />
<meta name="assert" content="Overflow hidden clips table grid, but not captions.">
<style>
main * {
box-sizing: border-box;
}
main table {
overflow: hidden;
border: 20px solid green;
border-spacing: 0px;
}
main caption {
height: 30px;
background: lightblue;
}
main td {
padding:0px;
width: 50px;
height:50px;
}
</style>
<main>
<table>
<tr>
<td>
<div style="width:50px;height:50px">
<div style="width:500px;height:500px;background:pink"></div>
</div>
</td>
</tr>
<caption style="caption-side:bottom">caption</caption>
</table>
</main>