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

Side by Side Diff: LayoutTests/imported/web-platform-tests/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-missing-pdf.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 when contains LRO or RLO without PDF</title>
6 <link rel="match" href="bdi-neutral-missing-pdf-ref.html"/>
7 <link rel="author" title="Aharon Lanin" href="mailto:aharon@google.com"/>
8 <link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googleg roups.com"/>
9 <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-bdi-eleme nt"/>
10 <meta name="assert" content="
11 'For the purposes of applying the bidirectional algorithm to the paragraph -level
12 container that a bdi element finds itself within, the bdi element must be treated
13 like a U+FFFC OBJECT REPLACEMENT CHARACTER.'
14 Thus, if a BDI contains LRO or RLO characters lacking a matching PDF, thes e must not affect
15 the visual ordering of the content outside the BDI."/>
16 <style>
17 body{
18 font-size:2em;
19 }
20 .test, .ref {
21 border: medium solid gray;
22 width: 400px;
23 margin: 20px;
24 }
25 .comments { display: none; }
26 </style>
27 </head>
28 <body>
29 <div class="instructions" style="display:none"><p>Test passes if the two box es below look exactly the same.</p></div>
30 <div class="comments">
31 Key to entities used below:
32 &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
33 &#x202D; - The LRO (left-to-right override) formatting character.
34 &#x202E; - the RLO (right-to-left-override) formatting character.
35 &#x202C; - The PDF (pop directional formatting) formatting character; cl oses LRO and RLO.
36 If the BDI in the test's first DIV were a SPAN, the RLO it contains, not b eing closed by a
37 PDF, would visually reorder the de into ed.
38 </div>
39 <div class="test">
40 <div dir="ltr"><bdi>&#x05D0;&#x202E;bc</bdi>de...</div>
41 <div dir="ltr"><bdi dir="ltr">&#x05D0;&#x202E;bc</bdi>de...</div>
42 <div dir="ltr"><bdi dir="rtl">&#x05D0;&#x202E;bc</bdi>de...</div>
43 <div dir="rtl"><bdi>a&#x202D;&#x05D1;&#x05D2;</bdi>&#x05D3;&#x05D4;...</di v>
44 <div dir="rtl"><bdi dir="ltr">a&#x202D;&#x05D1;&#x05D2;</bdi>&#x05D3;&#x05 D4;...</div>
45 <div dir="rtl"><bdi dir="rtl">a&#x202D;&#x05D1;&#x05D2;</bdi>&#x05D3;&#x05 D4;...</div>
46 </div>
47 <div class="ref">
48 <div dir="ltr">&#x202D;cb&#x05D0;de...&#x202C;</div>
49 <div dir="ltr">&#x202D;cb&#x05D0;de...&#x202C;</div>
50 <div dir="ltr">&#x202D;cb&#x05D0;de...&#x202C;</div>
51 <div dir="rtl">&#x202D;...&#x05D4;&#x05D3;a&#x05D1;&#x05D2;&#x202C;</div>
52 <div dir="rtl">&#x202D;...&#x05D4;&#x05D3;a&#x05D1;&#x05D2;&#x202C;</div>
53 <div dir="rtl">&#x202D;...&#x05D4;&#x05D3;a&#x05D1;&#x05D2;&#x202C;</div>
54 </div>
55 </body>
56 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698