layout/reftests/bidi/dirAuto/dir_auto-unset-contained-dir-L-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.)

     1 <!DOCTYPE html>
     2 <html>
     3   <head>
     4     <meta charset="utf-8" />
     5     <title>HTML Test: dir=auto, start with dir, then R</title>
     6     <link rel="reference" href="dir_auto-contained-dir-R-ref.html" />
     7     <link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
     8     <link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
     9     <link rel="author" title="Simon Montagu" href="mailto:smontagu@smontagu.org" />
    10     <link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
    11     <link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
    12     <meta name="assert" content="
    13       When dir='auto', the direction is set according to the first strong character
    14       of the text while ignoring contained elements with an explicit dir of their own.
    15       In this test, it is the Latin letter D, thus the direction must be
    16       resolved as LTR.
    17       This is a variation of the original dir_auto-contained-dir-R.html in which
    18       the explicit dir is unset by script after loading the page" />
    19     <style>
    20       input, textarea {
    21         font-size:1em;
    22       }
    23       body {
    24         font-size:2em;
    25       }
    26       .test, .ref {
    27         border: medium solid gray;
    28         width: 400px;
    29         margin: 20px;
    30       }
    31       .comments {
    32         display: none;
    33       }
    34     </style>
    35   </head>
    36   <body>
    37     <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
    38     <div class="comments">
    39       Key to entities used below:
    40       &#x05D0; - The Hebrew letter Alef (strongly RTL).
    41       &#x05D1; - The Hebrew letter Bet (strongly RTL).
    42       &#x05D2; - The Hebrew letter Gimel (strongly RTL).
    43     </div>
    44     <div class="test">
    45       <div dir="ltr">
    46         <div dir="ltr"><p id="p1" dir="ltr">DEF</p>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
    47       </div>
    48       <div dir="rtl">
    49         <div dir="ltr"><p id="p2" dir="ltr">DEF</p>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
    50       </div>
    51     </div>
    52     <div class="ref">
    53       <div dir="ltr">
    54         <div dir="ltr"><p dir="ltr">DEF</p>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
    55       </div>
    56       <div dir="rtl">
    57         <div dir="ltr"><p dir="ltr">DEF</p>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
    58       </div>
    59     </div>
    60   </body>
    61 </html>

mercurial