layout/reftests/bidi/726420-1-ref.html

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

michael@0 1 <!DOCTYPE html>
michael@0 2 <html>
michael@0 3 <head>
michael@0 4 <meta charset="utf-8">
michael@0 5 <title>HTML Test: textarea with dir=auto, all N+EN</title>
michael@0 6 <link rel="author" title="Aharon Lanin" href="mailto:aharon@google.com">
michael@0 7 <link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com">
michael@0 8 <link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute">
michael@0 9 <link rel="help" href="http://dev.w3.org/csswg/css3-writing-modes/#unicode-bidi0">
michael@0 10 <meta name="assert" content="
michael@0 11 When dir='auto', the direction is set according to the first strong character
michael@0 12 of the text.
michael@0 13 For textarea and pre elements, the heuristic is applied on a per-paragraph level.
michael@0 14 If there is no strong character, as in this test, the direction defaults to LTR.">
michael@0 15 <style>
michael@0 16 body { text-align:left }
michael@0 17 textarea {
michael@0 18 font-size:18px;
michael@0 19 text-align:left;
michael@0 20 resize: none;
michael@0 21 }
michael@0 22 .ref {
michael@0 23 border: medium solid gray;
michael@0 24 width: 400px;
michael@0 25 margin: 20px;
michael@0 26 }
michael@0 27 .comments {
michael@0 28 display: none;
michael@0 29 }
michael@0 30 </style>
michael@0 31 </head>
michael@0 32 <body>
michael@0 33 <div class="comments">
michael@0 34 We use text-align:left because neither the dir="auto" nor the unicode-bidi:plaintext
michael@0 35 specification states whether text-align:start and text-align:end should obey the paragraph
michael@0 36 direction or the direction property in a unicode-bidi:plaintext element.
michael@0 37 The ...! paragraph, being neutral, is supposed to be displayed LTR (i.e. as ...!, not as !...)
michael@0 38 despite both the paragraph before it and the paragraph after it being all-RTL, which makes the
michael@0 39 element as a whole RTL.
michael@0 40 </div>
michael@0 41 <div class="ref">
michael@0 42 <div dir="ltr">
michael@0 43 <textarea rows="5" dir="ltr">@123!
michael@0 44 &#x05d0;
michael@0 45 ...!
michael@0 46 &#x05d0;
michael@0 47 </textarea>
michael@0 48 </div>
michael@0 49 <div dir="rtl">
michael@0 50 <textarea rows="5" dir="ltr">@123!
michael@0 51 &#x05d0;
michael@0 52 ...!
michael@0 53 &#x05d0;
michael@0 54 </textarea>
michael@0 55 </div>
michael@0 56 </div>
michael@0 57 </body>
michael@0 58 </html>

mercurial