layout/reftests/bidi/712600-2-dyn.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/bidi/712600-2-dyn.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,45 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html class="reftest-wait"><head>
     1.6 +<meta http-equiv="content-type" content="text/html; charset=UTF-8">
     1.7 +    <meta charset="utf-8">
     1.8 +    <title>HTML Test: BDI: neutral when nested</title>
     1.9 +    <link rel="reference" href="https://bug712600.bugzilla.mozilla.org/bdi-neutral-nested-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 +      'For the purposes of applying the bidirectional algorithm to the paragraph-level
    1.15 +      container that a bdi element finds itself within, the bdi element must be treated
    1.16 +      like a U+FFFC OBJECT REPLACEMENT CHARACTER.'">
    1.17 +    <style>
    1.18 +      body{
    1.19 +        font-size:2em;
    1.20 +      }
    1.21 +    </style>
    1.22 +  </head>
    1.23 +  <body>
    1.24 +    <!-- Key to entities used below:
    1.25 +      &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
    1.26 +      &#x202D; - The LRO (left-to-right-override) formatting character.
    1.27 +      &#x202C; - The PDF (pop directional formatting) formatting character; closes LRO. -->
    1.28 +
    1.29 +      <div dir="ltr">א + <bdi>[a + <bdi>[ב + <bdi>[b + 4]</bdi> + 3]</bdi> + 2]</bdi> + 1</div>
    1.30 +      <div dir="ltr">א + <bdi dir="rtl">[a + <bdi dir="ltr">[ב + <bdi dir="rtl">[b + 4]</bdi> + 3]</bdi> + 2]</bdi> + 1</div>
    1.31 +      <div dir="ltr">א + <bdi dir="ltr">[<span id='delete1'>z +</span>a + <bdi dir="rtl">[ב + <bdi dir="ltr">[b + 4]</bdi> + 3]</bdi> + 2]</bdi> + 1</div>
    1.32 +      <div dir="rtl">a + <bdi>[א + <bdi>[b + <bdi>[ב + 3]</bdi> + 2]</bdi> + 1]</bdi> + 0</div>
    1.33 +      <div dir="rtl">a + <bdi dir="ltr">[א + <bdi dir="rtl">[b + <bdi dir="ltr">[ב + 3]</bdi> + 2]</bdi> + 1]</bdi> + 0</div>
    1.34 +      <div dir="rtl">a + <bdi dir="rtl">[א + <bdi dir="ltr">[<span
    1.35 +      id='delete2'>z + </span>b + <bdi dir="rtl">[ב + 3]</bdi> + 2]</bdi> + 1]</bdi> + 0</div>
    1.36 +
    1.37 +      <script type="text/javascript">
    1.38 +	function deleteSpans() {
    1.39 +	    var n = document.getElementById('delete1');
    1.40 +	    var n2 = document.getElementById('delete2');
    1.41 +	    n.parentNode.removeChild(n);
    1.42 +	    n2.parentNode.removeChild(n2);
    1.43 +            document.documentElement.removeAttribute("class");
    1.44 +        }
    1.45 +        document.addEventListener("MozReftestInvalidate", deleteSpans, false);
    1.46 +      </script>
    1.47 +
    1.48 +</body></html>

mercurial