Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/rendering/non-replaced-elements/tables/table-row-group-direction.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="match" href="table-row-group-direction-ref.html">
<title>Table row-group direction</title>
<style>
table {
border-collapse: collapse;
}
td {
border: 2px solid black;
width: 20px;
height: 20px;
}
td.special {
border-left: 5px solid green;
border-right: 5px solid blue;
}
</style>
Normal table with LTR and RTL row groups:
<table>
<tbody style="direction: ltr">
<tr>
<td></td>
<td class="special"></td>
</tr>
</tbody>
<tbody style="direction: rtl">
<tr>
<td></td>
<td class="special"></td>
</tr>
</tbody>
</table>
<hr>
RTL table with LTR and RTL row groups:
<table style="direction: rtl">
<tbody style="direction: ltr">
<tr>
<td></td>
<td class="special"></td>
</tr>
</tbody>
<tbody style="direction: rtl">
<tr>
<td></td>
<td class="special"></td>
</tr>
</tbody>
</table>