Bug 71188 - unicode-bidi:-webkit-plaintext on by default for <textarea dir=ltr|rtl>
Summary: unicode-bidi:-webkit-plaintext on by default for <textarea dir=ltr|rtl>
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P1 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 63903
Blocks: 50910
  Show dependency treegraph
 
Reported: 2011-10-30 10:34 PDT by Aharon (Vladimir) Lanin
Modified: 2011-11-28 11:22 PST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aharon (Vladimir) Lanin 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.
Comment 1 Amir E. Aharoni 2011-10-30 10:42:42 PDT
Kudos also to Ofekalef and Eran from the Hebrew Wikipedia, who noticed this.
Comment 2 Levi Weintraub 2011-10-30 20:48:14 PDT
Thanks for catching and filing this! I'll get it resolved.
Comment 3 Aharon (Vladimir) Lanin 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. :-)
Comment 4 Ryosuke Niwa 2011-11-28 11:22:09 PST
Fixed in http://trac.webkit.org/changeset/101268.