<html>
<body>
<table style="-webkit-writing-mode: vertical-rl;">
<tr>
<td id="A" height='1' style="background:blue"></td>
</tr>
<tr>
<td id="B" colspan='2' rowspan='2' style="background:green"></td>
</tr>
<tr>
<td id="C" rowspan='2' style="background:red"></td>
</tr>
<tr>
<td id="D" colspan='2' style="background:cyan">
<table>
<tr>
<td id="E" style="background:magenta"></td>
<td id="F" style="background:yellow">
<input type='text' />
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
