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

Side by Side Diff: LayoutTests/imported/web-platform-tests/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-separate.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: paragraph-level container</title>
6 <link rel="match" href="bdi-neutral-separate-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, under no circumstances should any part of the content outside a BDI be visually
15 reordered inside the BDI's content."/>
16 <style>
17 body{
18 font-size:2em;
19 }
20 .test, .ref {
21 border: medium solid gray;
22 width: 500px;
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 &#x202C; - The PDF (pop directional formatting) formatting character; cl oses LRO.
35 If the BDIs in the test's first DIV were just SPANs, the &#x05D0; would ap pear between the 1
36 and the b, and the &#x05D5; between the d and the &#x05D4;.
37 </div>
38 <div class="test">
39 <div dir="ltr">&#x05D0; <bdi>[1 b]</bdi> c <bdi>[d &#x05D4;]</bdi> &#x05D5 ;...</div>
40 <div dir="rtl">a <bdi>[1 &#x05D1;]</bdi> &#x05D2; <bdi>[&#x05D3; e]</bdi> f...</div>
41 </div>
42 <div class="ref">
43 <div dir="ltr">&#x202D;&#x05D0; [1 b] c [d &#x05D4;] &#x05D5;...&#x202C;</ div>
44 <div dir="rtl">&#x202D;...f [e &#x05D3;] &#x05D2; [&#x05D1; 1] a&#x202C;</ div>
45 </div>
46 </body>
47 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698