Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: LayoutTests/imported/web-platform-tests/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-to-another-bdi-2.html

Issue 1144143009: W3C Test: Import web-platform-tests/html/semantics (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8" />
5 <title>HTML Test: BDI: neutral to another immediately following BDI</title>
6 <link rel="match" href="bdi-neutral-to-another-bdi-2-ref.html">
7 <link rel="author" title="Aharon Lanin" href="mailto:aharon@google.com" />
8 <link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
9 <link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googleg roups.com" />
10 <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-bdi-eleme nt" />
11 <meta name="assert" content="
12 'For the purposes of applying the bidirectional algorithm to the paragraph -level
13 container that a bdi element finds itself within, the bdi element must be treated
14 like a U+FFFC OBJECT REPLACEMENT CHARACTER.'
15 Thus, when a BDI contains text of the same strong direction as another BDI following it, the
16 two must not form a directional run as would be the case if the BDIs were just SPANs, even if
17 the two BDIs are not separated by anything at all." />
18 <style>
19 body{
20 font-size:2em;
21 }
22 .test, .ref {
23 border: medium solid gray;
24 width: 400px;
25 margin: 20px;
26 }
27 .comments {
28 display: none;
29 }
30 </style>
31 </head>
32 <body>
33 <div class="instructions" style="display:none">Test passes if the two boxes below look exactly the same.</div>
34 <div class="comments">
35 Key to entities used below:
36 &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
37 &#x202D; - The LRO (left-to-right override) formatting character.
38 &#x202C; - The PDF (pop directional formatting) formatting character; cl oses LRO.
39 If the BDIs in the test's first DIV were SPANs, the &#x05D1; would be rend ered to the left of
40 the &#x05D0;.
41 </div>
42 <div class="test">
43 <div dir="ltr"><bdi>&#x05D0;</bdi><bdi>&#x05D1;</bdi>...</div>
44 <div dir="ltr"><bdi dir="rtl">&#x05D0;</bdi><bdi dir="rtl">&#x05D1;</bdi>. ..</div>
45 <div dir="ltr"><bdi dir="ltr">&#x05D0;</bdi><bdi dir="ltr">&#x05D1;</bdi>. ..</div>
46 <div dir="rtl"><bdi>a</bdi><bdi>b</bdi>...</div>
47 <div dir="rtl"><bdi dir="ltr">a</bdi><bdi dir="ltr">b</bdi>...</div>
48 <div dir="rtl"><bdi dir="rtl">a</bdi><bdi dir="rtl">b</bdi>...</div>
49 </div>
50 <div class="ref">
51 <div dir="ltr">&#x202D;&#x05D0;&#x05D1;...&#x202C;</div>
52 <div dir="ltr">&#x202D;&#x05D0;&#x05D1;...&#x202C;</div>
53 <div dir="ltr">&#x202D;&#x05D0;&#x05D1;...&#x202C;</div>
54 <div dir="rtl">&#x202D;...ba&#x202C;</div>
55 <div dir="rtl">&#x202D;...ba&#x202C;</div>
56 <div dir="rtl">&#x202D;...ba&#x202C;</div>
57 </div>
58 </body>
59 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698