blob: b0e850ec1f110a0fd89415793926215cbffe88be [file] [log] [blame]
<html>
<head>
<style type="text/css" media="screen">
table {
border: 1px solid black;
display: block;
margin: 10px;
-webkit-writing-mode: vertical-rl;
}
.test tr, .test thead, .test tfoot {
display: table-cell;
}
.test td {
display: inline;
}
.test2 tr, .test2 thead, .test2 tfoot {
display: block;
}
.para {
height: 300px;
width: 100px;
border: 1px solid black;
display: table-cell;
-webkit-writing-mode: vertical-rl;
}
</style>
</head>
<body>
<table>
<thead>
<tr><td>Head 1</td><td>Head 2</td></tr>
</thead>
<tfoot>
<tr><td>Footer 1</td><td>Footer 2</td></tr>
</tfoot>
<tbody>
<tr><td>Cell 1</td><td>Cell 2</td></tr>
<tr><td>Cell 3</td><td>Cell 4</td></tr>
</tbody>
</table>
<p>Row groups have display:table-cell</p>
<table class="test">
<thead>
<tr><td>Head 1</td><td>Head 2</td></tr>
</thead>
<tfoot>
<tr><td>Footer 1</td><td>Footer 2</td></tr>
</tfoot>
<tbody>
<tr><td>Cell 1</td><td>Cell 2</td></tr>
<tr><td>Cell 3</td><td>Cell 4</td></tr>
</tbody>
</table>
<p>Row groups have display:block</p>
<table class="test2">
<thead>
<tr><td>Head 1</td><td>Head 2</td></tr>
</thead>
<tfoot>
<tr><td>Footer 1</td><td>Footer 2</td></tr>
</tfoot>
<tbody>
<tr><td>Cell 1</td><td>Cell 2</td></tr>
<tr><td>Cell 3</td><td>Cell 4</td></tr>
</tbody>
</table>
<p class="para">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
</body>
</html>