<?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>71188</bug_id>
          
          <creation_ts>2011-10-30 10:34:27 -0700</creation_ts>
          <short_desc>unicode-bidi:-webkit-plaintext on by default for &lt;textarea dir=ltr|rtl&gt;</short_desc>
          <delta_ts>2011-11-28 11:22:22 -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>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>63903</dependson>
          <blocked>50910</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Aharon (Vladimir) Lanin">aharon</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>amir.aharoni</cc>
    
    <cc>eric</cc>
    
    <cc>leviw</cc>
    
    <cc>playmobil</cc>
    
    <cc>rniwa</cc>
    
    <cc>uriber</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>493050</commentid>
    <comment_count>0</comment_count>
    <who name="Aharon (Vladimir) Lanin">aharon</who>
    <bug_when>2011-10-30 10:34:27 -0700</bug_when>
    <thetext>unicode-bidi:-webkit-plaintext is supposed to be on by default for &lt;textarea dir=auto&gt;. However, currently (at least in Chrome 15.0.874.106 and 17.0.919.0), it is also on by default for &lt;textarea dir=ltr&gt; and &lt;textarea dir=rtl&gt;. This breaks backwards compatibility.

test case: data:text/html,&lt;textarea dir=rtl&gt;the period should be on the left.&lt;/textarea&gt;

According to the HTML spec (http://dev.w3.org/html5/spec/Overview.html#bidirectional-text), the correct default stylesheet as relating to unicode-bidi is supposed to be:

[dir] { unicode-bidi: embed; }
bdi, bdi[dir], output, output[dir], [dir=auto i] { unicode-bidi: isolate; }
bdo, bdo[dir] { unicode-bidi: bidi-override; }
bdo[dir=auto i] { unicode-bidi: bidi-override isolate; }
textarea[dir=auto i], pre[dir=auto i] { unicode-bidi: plaintext; }

Also see https://bugs.webkit.org/show_bug.cgi?id=70373 for another bug due to an incorrect default being set for unicode-bidi.

Kudos to Amir Aharoni on finding this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>493052</commentid>
    <comment_count>1</comment_count>
    <who name="Amir E. Aharoni">amir.aharoni</who>
    <bug_when>2011-10-30 10:42:42 -0700</bug_when>
    <thetext>Kudos also to Ofekalef and Eran from the Hebrew Wikipedia, who noticed this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>493138</commentid>
    <comment_count>2</comment_count>
    <who name="Levi Weintraub">leviw</who>
    <bug_when>2011-10-30 20:48:14 -0700</bug_when>
    <thetext>Thanks for catching and filing this! I&apos;ll get it resolved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>493194</commentid>
    <comment_count>3</comment_count>
    <who name="Aharon (Vladimir) Lanin">aharon</who>
    <bug_when>2011-10-31 00:43:18 -0700</bug_when>
    <thetext>Thanks! If, while working on this, you happen to resolve https://bugs.webkit.org/show_bug.cgi?id=70373, I promise not to complain. :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>509999</commentid>
    <comment_count>4</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-11-28 11:22:09 -0800</bug_when>
    <thetext>Fixed in http://trac.webkit.org/changeset/101268.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>