Bug 71188

Summary: unicode-bidi:-webkit-plaintext on by default for <textarea dir=ltr|rtl>
Product: WebKit Reporter: Aharon (Vladimir) Lanin <aharon>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: amir.aharoni, eric, leviw, playmobil, rniwa, uriber
Priority: P1    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 63903    
Bug Blocks: 50910    

Aharon (Vladimir) Lanin
Reported 2011-10-30 10:34:27 PDT
unicode-bidi:-webkit-plaintext is supposed to be on by default for <textarea dir=auto>. However, currently (at least in Chrome 15.0.874.106 and 17.0.919.0), it is also on by default for <textarea dir=ltr> and <textarea dir=rtl>. This breaks backwards compatibility. test case: data:text/html,<textarea dir=rtl>the period should be on the left.</textarea> 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.
Attachments
Amir E. Aharoni
Comment 1 2011-10-30 10:42:42 PDT
Kudos also to Ofekalef and Eran from the Hebrew Wikipedia, who noticed this.
Levi Weintraub
Comment 2 2011-10-30 20:48:14 PDT
Thanks for catching and filing this! I'll get it resolved.
Aharon (Vladimir) Lanin
Comment 3 2011-10-31 00:43:18 PDT
Thanks! If, while working on this, you happen to resolve https://bugs.webkit.org/show_bug.cgi?id=70373, I promise not to complain. :-)
Ryosuke Niwa
Comment 4 2011-11-28 11:22:09 PST
Note You need to log in before you can comment on or make changes to this bug.