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

Side by Side Diff: LayoutTests/imported/web-platform-tests/html/semantics/text-level-semantics/the-br-element/br-bidi-in-inline-ancestors.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: BR in inline ancestors</title>
6 <link rel="match" href="br-bidi-in-inline-ancestors-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-br-elemen t"/>
10 <link rel="help" href="http://www.w3.org/TR/css3-writing-modes/#unicode-bidi " />
11 <meta name="assert" content="
12 'A br element should separate paragraphs for the purposes of the Unicode b idirectional
13 algorithm.'
14 'If an inline element is broken around a bidi paragraph boundary (e.g. if split by a block or
15 forced paragraph break), then the bidi control codes corresponding to the end of the element
16 are added before the interruption and the codes corresponding to the start of the element are
17 added after it. (In other words, any embedding levels or overrides started by the element are
18 closed at the paragraph break and reopened on the other side of it.)'" />
19 <style>
20 body{
21 font-size:2em;
22 }
23 .test, .ref {
24 border: medium solid gray;
25 width: 400px;
26 margin: 20px;
27 }
28 .comments { display: none; }
29 </style>
30 </head>
31 <body>
32 <div class="instructions" style="display:none"><p>Test passes if the two box es below look exactly the same.</p></div>
33 <div class="comments">
34 Key to entities used below:
35 &#x05D0; ... &#x05D8; - The first nine Hebrew letters (strongly RTL).
36 &#x200E; - The LRM (left-to-right mark) formatting character (invisible, stronly LTR).
37 &#x200F; - The RLM (right-to-left mark) formatting character (invisible, stronly RTL).
38 &#x202D; - The LRO (left-to-right override) formatting character.
39 &#x202C; - The PDF (pop directional formatting) formatting character; cl oses LRO.
40 </div>
41 <div class="test">
42 &#x05D1;&#x05D0;&#x200E;
43 <bdo dir="rtl">ih
44 <bdo dir="ltr">&#x05D2;&#x05D3;
45 <span dir="rtl">fg&#x200F;
46 <span dir="ltr">1. I like &#x05D4;.<br/>
47 2. &#x05D4; is great!</span>
48 &#x200F;cd</span>
49 &#x05D5;&#x05D6;</bdo>
50 ba</bdo>
51 &#x200E;&#x05D8;&#x05D7;
52 </div>
53 <div class="ref">
54 &#x202D;&#x05D0;&#x05D1; &#x05D2;&#x05D3; 1. I like &#x05D4;. fg hi&#x202C ;
55 <br/>
56 &#x202D;ab cd 2. &#x05D4; is great! &#x05D5;&#x05D6; &#x05D7;&#x05D8;&#x20 2C;
57 </div>
58 </body>
59 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698