layout/reftests/bidi/dirAuto/bdi-auto-dir-default.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/bidi/dirAuto/bdi-auto-dir-default.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,40 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html>
     1.6 +  <head>
     1.7 +    <meta charset="utf-8">
     1.8 +    <title>HTML Test: BDI: paragraph-level container</title>
     1.9 +    <link rel="reference" href="bdi-auto-dir-default-ref.html">
    1.10 +    <link rel="author" title="Aharon Lanin" href="mailto:aharon@google.com">
    1.11 +    <link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com">
    1.12 +    <link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-bdi-element">
    1.13 +    <meta name="assert" content="
    1.14 +      'The dir global attribute defaults to auto on this element (it never inherits from the parent
    1.15 +      element like with other elements).'">
    1.16 +    <style>
    1.17 +      body{
    1.18 +        font-size:2em;
    1.19 +      }
    1.20 +      .box {
    1.21 +        border: medium solid gray;
    1.22 +        width: 500px;
    1.23 +        margin: 20px;
    1.24 +      }
    1.25 +    </style>
    1.26 +  </head>
    1.27 +  <body>
    1.28 +    <!-- Key to entities used below:
    1.29 +      &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
    1.30 +      &#x202D; - The LRO (left-to-right-override) formatting character.
    1.31 +      &#x202C; - The PDF (pop directional formatting) formatting character; closes LRO. -->
    1.32 +    <div class="box">
    1.33 +      <!--
    1.34 +        In each DIV below:
    1.35 +        - the first BDI, having no characters with strong direction, should be LTR by default;
    1.36 +        - the second BDI, having an LTR character first, should be LTR by default;
    1.37 +        - the thord BDI, having an RTL character first, should be RTL by default.
    1.38 +      -->
    1.39 +      <div dir="ltr"><bdi>[:)]</bdi>, <bdi>[+- a &#x05D1;]</bdi>, <bdi>[1 &#x05D2; d]</bdi>...</div>
    1.40 +      <div dir="rtl"><bdi>[:)]</bdi>, <bdi>[+- a &#x05D1;]</bdi>, <bdi>[1 &#x05D2; d]</bdi>...</div>
    1.41 +    </div>
    1.42 +  </body>
    1.43 +</html>

mercurial