1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/bidi/726420-1-ref.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,58 @@ 1.4 +<!DOCTYPE html> 1.5 +<html> 1.6 + <head> 1.7 + <meta charset="utf-8"> 1.8 + <title>HTML Test: textarea with dir=auto, all N+EN</title> 1.9 + <link rel="author" title="Aharon Lanin" href="mailto:aharon@google.com"> 1.10 + <link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com"> 1.11 + <link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute"> 1.12 + <link rel="help" href="http://dev.w3.org/csswg/css3-writing-modes/#unicode-bidi0"> 1.13 + <meta name="assert" content=" 1.14 + When dir='auto', the direction is set according to the first strong character 1.15 + of the text. 1.16 + For textarea and pre elements, the heuristic is applied on a per-paragraph level. 1.17 + If there is no strong character, as in this test, the direction defaults to LTR."> 1.18 + <style> 1.19 + body { text-align:left } 1.20 + textarea { 1.21 + font-size:18px; 1.22 + text-align:left; 1.23 + resize: none; 1.24 + } 1.25 + .ref { 1.26 + border: medium solid gray; 1.27 + width: 400px; 1.28 + margin: 20px; 1.29 + } 1.30 + .comments { 1.31 + display: none; 1.32 + } 1.33 + </style> 1.34 + </head> 1.35 + <body> 1.36 + <div class="comments"> 1.37 + We use text-align:left because neither the dir="auto" nor the unicode-bidi:plaintext 1.38 + specification states whether text-align:start and text-align:end should obey the paragraph 1.39 + direction or the direction property in a unicode-bidi:plaintext element. 1.40 + The ...! paragraph, being neutral, is supposed to be displayed LTR (i.e. as ...!, not as !...) 1.41 + despite both the paragraph before it and the paragraph after it being all-RTL, which makes the 1.42 + element as a whole RTL. 1.43 + </div> 1.44 + <div class="ref"> 1.45 + <div dir="ltr"> 1.46 + <textarea rows="5" dir="ltr">@123! 1.47 +א 1.48 +...! 1.49 +א 1.50 + </textarea> 1.51 + </div> 1.52 + <div dir="rtl"> 1.53 + <textarea rows="5" dir="ltr">@123! 1.54 +א 1.55 +...! 1.56 +א 1.57 + </textarea> 1.58 + </div> 1.59 + </div> 1.60 + </body> 1.61 +</html>