     <div dir="ltr">
        <div dir="auto"><script>x = 3;</script>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
      </div>
      <div dir="rtl">
        <div dir="auto"><script>x = 3;</script>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
      </div>
    </div>
    <div class="ref">
      <div dir="ltr">
        <div dir="rtl"><script>x = 3;</script>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
      </div>
      <div dir="rtl">
        <div dir="rtl"><script>x = 3;</script>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
      </div>
    </div>
  <