 not supporting sideways-lr */
    writing-mode: sideways-lr;
    direction: rtl;
  }
  .test[dir=rtl] thead,
  .test[dir=rtl] tfoot,
  .test[dir=rtl] tbody,
  .test[dir=rtl] tr,
  .test[dir=rtl] td {
    writing-mode: horizontal-tb;
    direction: ltr;
  }
</style>

<p>Test passes if the following three tables look identical.

<table class="test">
  <thead>
    <tr>
      <td class="navy">
      <td class="blue">
      <td colspan=2>
  <tfoot>
    <tr>
      <td colspan=2>
      <td class="aqua">
      <td