 <body>
    <div contenteditable id="horizontal">text1<br />text2</div>
    <div contenteditable class="vertical-lr" id="vertical_lr">
      text1<br />
      text2
    </div>
    <div contenteditable class="vertical-rl" id="vertical_rl">
      text1<br />
      text2
    </div>

    <script>
      const horizontal = document.getElementById("horizontal");
      const verticalLR = document.getElementById("vertical_lr");
      const verticalRL = document.getElementById("vertical_rl");
      const tests = [
  