<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Wrong whitespace position in wrapped rtl"
   href="https://bugs.webkit.org/show_bug.cgi?id=165753">165753</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Wrong whitespace position in wrapped rtl
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Minor
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>HTML Editing
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mail&#64;adrianheine.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Given a monospace textarea with a width of 6 characters with the following content:

<span class="quote">&gt;&gt;&gt;&gt;&lt;&lt;&lt;&lt;&lt; (order)</span >
012387654 (storage position)
Say ا ب ج

Firefox wraps like this:

 &gt;&gt;&gt;&gt;&lt;&lt;  (order)
|012354| (storage position)
|Say  ا|

 &lt;&lt;&lt;     (order)
|876   | (storage position)
|ب ج   |

Webkit wraps like this:

 &gt;&gt;&gt;&gt;&lt;&lt;  (order)
|012345| (storage position)
|Say ا |

 &lt;&lt;&lt;     (order)
|876   | (storage position)
|ب ج   |

I argue that Webkit's behaviour is wrong, since 4 and 5 are part of an rtl span and thus their horizontal order should be reversed content order.

I confirmed this in Epiphany with Webkit 2.14.2 and Chromium 55.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>