layout/reftests/bidi/dirAuto/dir_auto-unset-contained-dir-R-ref.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/bidi/dirAuto/dir_auto-unset-contained-dir-R-ref.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,64 @@
     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="Simon Montagu" href="mailto:smontagu@smontagu.org" />
    1.13 +    <link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
    1.14 +    <link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
    1.15 +    <meta name="assert" content="
    1.16 +      When dir='auto', the direction is set according to the first strong character
    1.17 +      of the text while ignoring contained elements with an explicit dir of their own.
    1.18 +      In this test, it is the Hebrew letter Dalet, thus the direction must be
    1.19 +      resolved as RTL.
    1.20 +      This is a variation of the original dir_auto-contained-dir-L.html in which
    1.21 +      the explicit dir is unset by script after loading the page" />
    1.22 +    <style>
    1.23 +      input, textarea {
    1.24 +        font-size:1em;
    1.25 +      }
    1.26 +      body {
    1.27 +        font-size:2em;
    1.28 +      }
    1.29 +      .test, .ref {
    1.30 +        border: medium solid gray;
    1.31 +        width: 400px;
    1.32 +        margin: 20px;
    1.33 +      }
    1.34 +      .comments {
    1.35 +        display: none;
    1.36 +      }
    1.37 +    </style>
    1.38 +  </head>
    1.39 +  <body>
    1.40 +    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
    1.41 +    <div class="comments">
    1.42 +      Key to entities used below:
    1.43 +      &#x05D0; - The Hebrew letter Alef (strongly RTL).
    1.44 +      &#x05D1; - The Hebrew letter Bet (strongly RTL).
    1.45 +      &#x05D2; - The Hebrew letter Gimel (strongly RTL).
    1.46 +      &#x05D3; - The Hebrew letter Dalet (strongly RTL).
    1.47 +      &#x05D4; - The Hebrew letter He (strongly RTL).
    1.48 +      &#x05D5; - The Hebrew letter Vav (strongly RTL).
    1.49 +    </div>
    1.50 +    <div class="test">
    1.51 +      <div dir="ltr">
    1.52 +        <div dir="rtl"><p id="p1" dir="rtl">&#x05D3;&#x05D4;&#x05D5;</p>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
    1.53 +      </div>
    1.54 +      <div dir="rtl">
    1.55 +        <div dir="rtl"><p id="p2" dir="rtl">&#x05D3;&#x05D4;&#x05D5;</p>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
    1.56 +      </div>
    1.57 +    </div>
    1.58 +    <div class="ref">
    1.59 +      <div dir="ltr">
    1.60 +        <div dir="rtl"><p dir="rtl">&#x05D3;&#x05D4;&#x05D5;</p>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
    1.61 +      </div>
    1.62 +      <div dir="rtl">
    1.63 +        <div dir="rtl"><p dir="rtl">&#x05D3;&#x05D4;&#x05D5;</p>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
    1.64 +      </div>
    1.65 +    </div>
    1.66 +  </body>
    1.67 +</html>

mercurial