1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/bidi/dirAuto/dir_auto-contained-dir-L-ref.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,61 @@ 1.4 +<!DOCTYPE html> 1.5 +<html> 1.6 + <head> 1.7 + <meta charset="utf-8" /> 1.8 + <title>HTML Test: dir=auto, start with dir, then L</title> 1.9 + <link rel="reference" href="dir_auto-contained-dir-L-ref.html" /> 1.10 + <link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" /> 1.11 + <link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" /> 1.12 + <link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" /> 1.13 + <link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" /> 1.14 + <meta name="assert" content=" 1.15 + When dir='auto', the direction is set according to the first strong character 1.16 + of the text while ignoring contained elements with an explicit dir of their own. 1.17 + In this test, it is the Latin letter A, thus the direction must be 1.18 + resolved as LTR." /> 1.19 + <style> 1.20 + input, textarea { 1.21 + font-size:1em; 1.22 + } 1.23 + body { 1.24 + font-size:2em; 1.25 + } 1.26 + .test, .ref { 1.27 + border: medium solid gray; 1.28 + width: 400px; 1.29 + margin: 20px; 1.30 + } 1.31 + .comments { 1.32 + display: none; 1.33 + } 1.34 + </style> 1.35 + </head> 1.36 + <body> 1.37 + <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div> 1.38 + <div class="comments"> 1.39 + Key to entities used below: 1.40 + א - The Hebrew letter Alef (strongly RTL). 1.41 + ב - The Hebrew letter Bet (strongly RTL). 1.42 + ג - The Hebrew letter Gimel (strongly RTL). 1.43 + ד - The Hebrew letter Dalet (strongly RTL). 1.44 + ה - The Hebrew letter He (strongly RTL). 1.45 + ו - The Hebrew letter Vav (strongly RTL). 1.46 + </div> 1.47 + <div class="test"> 1.48 + <div dir="ltr"> 1.49 + <div dir="ltr"><p dir="rtl">דהו</p>ABCאבג.</div> 1.50 + </div> 1.51 + <div dir="rtl"> 1.52 + <div dir="ltr"><p dir="rtl">דהו</p>ABCאבג.</div> 1.53 + </div> 1.54 + </div> 1.55 + <div class="ref"> 1.56 + <div dir="ltr"> 1.57 + <div dir="ltr"><p dir="rtl">דהו</p>ABCאבג.</div> 1.58 + </div> 1.59 + <div dir="rtl"> 1.60 + <div dir="ltr"><p dir="rtl">דהו</p>ABCאבג.</div> 1.61 + </div> 1.62 + </div> 1.63 + </body> 1.64 +</html>