
    caption
  </caption>
  <tbody>
    <tr>
      <td>a</td>
      <td>b</td>
    </tr>
    <tr>
      <td>c</td>
      <td>d</td>
    </tr>
  </tbody>
</table>
<script>
window.addEventListener('load', (e) => {
  requestAnimationFrame(() => {
    requestAnimationFrame(() => {
      document.querySelector('#caption').style.captionSide = 'bottom';
    });
  });
});
</script>
</body>
</html>
