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

Side by Side Diff: LayoutTests/imported/web-platform-tests/html/semantics/text-level-semantics/the-bdi-element/bdi-neutral-wrapped.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 wrapped</title>
6 <link rel="match" href="bdi-neutral-wrapped-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 This should hold even if the BDI's content is wrapped over more than one l ine."/>
15 <style>
16 body{
17 font-size:2em;
18 }
19 .test, .ref {
20 border: medium solid gray;
21 width: 400px;
22 margin: 20px;
23 }
24 .comments { display: none; }
25 </style>
26 </head>
27 <body>
28 <div class="instructions" style="display:none"><p>Test passes if the two box es below look exactly the same.</p></div>
29 <div class="comments">
30 Key to entities used below:
31 &#xA0; - Non-breaking space.
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 In the test below, the non-breaking spaces in the BDI's middle "word" make it so long that it
36 must be displayed on a line of its own, with the BDI wrapped before and af ter it. At the same
37 time, the content surrounding the BDI is supposed to form a single directi onal run, despite
38 the containing element and the BDI both having the opposite direction, bec ause the BDI must be
39 treated as a neutral. Thus, on the line containing the first part of the B DI, the BDI's
40 content must appear after the content preceding it, and on the line contai ning the last part
41 of the BDI, the BDI content must appear before the content following it, w here both 'before'
42 and 'after' are defined relative to the surrounding directional run.
43 </div>
44 <div class="test">
45 <div dir="ltr">
46 &#x05D0; &gt;
47 <bdi>b
48 &gt;&gt;&gt;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&# xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA 0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;
49 c</bdi>
50 &gt; &#x05D3;...
51 </div>
52 <div dir="rtl">
53 a &gt;
54 <bdi>&#x05D1;
55 &gt;&gt;&gt;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&# xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA 0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;
56 &#x05D2;</bdi>
57 &gt; d...
58 </div>
59 </div>
60 <div class="ref">
61 <div dir="ltr">
62 &#x202D;b &lt; &#x05D0;&#x202C;<br/>
63 &#x202D;&gt;&gt;&gt;&#x202C;<br/>
64 &#x202D;&#x05D3; &lt; c...&#x202C;
65 </div>
66 <div dir="rtl">
67 &#x202D;a &gt; &#x05D1;&#x202C;<br/>
68 &#x202D;&lt;&lt;&lt;&#x202C;<br/>
69 &#x202D;...&#x05D2; &gt; d&#x202C;
70 </div>
71 </div>
72 </body>
73 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698