<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>165753</bug_id>
          
          <creation_ts>2016-12-12 03:27:42 -0800</creation_ts>
          <short_desc>Wrong whitespace position in wrapped rtl</short_desc>
          <delta_ts>2016-12-12 11:56:01 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>HTML Editing</component>
          <version>Other</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adrian Heine">mail</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mmaxfield</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1259014</commentid>
    <comment_count>0</comment_count>
    <who name="Adrian Heine">mail</who>
    <bug_when>2016-12-12 03:27:42 -0800</bug_when>
    <thetext>Given a monospace textarea with a width of 6 characters with the following content:

&gt;&gt;&gt;&gt;&lt;&lt;&lt;&lt;&lt; (order)
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&apos;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.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>