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

Side by Side Diff: LayoutTests/imported/web-platform-tests/html/semantics/text-level-semantics/the-bdi-element/bdi-auto-dir-default.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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta charset="utf-8"> 4 <meta charset="utf-8"/>
5 <title>HTML Test: BDI: paragraph-level container</title> 5 <title>HTML Test: BDI: has dir=auto by default</title>
6 <link rel="reference" href="bdi-auto-dir-default-ref.html"> 6 <link rel="match" href="bdi-auto-dir-default-ref.html"/>
7 <link rel="author" title="Aharon Lanin" href="mailto:aharon@google.com"> 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"> 8 <link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googleg roups.com"/>
9 <link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-bdi-el ement"> 9 <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-bdi-eleme nt"/>
10 <meta name="assert" content=" 10 <meta name="assert" content="
11 'The dir global attribute defaults to auto on this element (it never inher its from the parent 11 'The dir global attribute defaults to auto on this element (it never inher its from the parent
12 element like with other elements).'"> 12 element like with other elements).'"/>
13 <style> 13 <style>
14 body{ 14 body{
15 font-size:2em; 15 font-size:2em;
16 } 16 }
17 .box { 17 .test, .ref {
18 border: medium solid gray; 18 border: medium solid gray;
19 width: 500px; 19 width: 500px;
20 margin: 20px; 20 margin: 20px;
21 } 21 » }
22 .comments { display: none; }
22 </style> 23 </style>
23 </head> 24 </head>
24 <body> 25 <body>
25 The two boxes below should look exactly the same. 26 <div class="instructions" style="display:none"><p>Test passes if the two box es below look exactly the same.</p></div>
26 <!-- Key to entities used below: 27 <div class="comments">
27 &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL). 28 Key to entities used below:
28 &#x202D; - The LRO (left-to-right-override) formatting character. 29 &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
29 &#x202C; - The PDF (pop directional formatting) formatting character; clos es LRO. --> 30 &#x202D; - The LRO (left-to-right override) formatting character.
30 <div class="box"> 31 &#x202C; - The PDF (pop directional formatting) formatting character; cl oses LRO.
31 <!-- 32 In each DIV of the test:
32 In each DIV below:
33 - the first BDI, having no characters with strong direction, should be L TR by default; 33 - the first BDI, having no characters with strong direction, should be L TR by default;
34 - the second BDI, having an LTR character first, should be LTR by defaul t; 34 - the second BDI, having an LTR character first, should be LTR by defaul t;
35 - the third BDI, having an RTL character first, should be RTL by default . 35 - the third BDI, having an RTL character first, should be RTL by default .
36 --> 36 </div>
37 <div class="test">
37 <div dir="ltr"><bdi>[:)]</bdi>, <bdi>[+- a &#x05D1;]</bdi>, <bdi>[1 &#x05D 2; d]</bdi>...</div> 38 <div dir="ltr"><bdi>[:)]</bdi>, <bdi>[+- a &#x05D1;]</bdi>, <bdi>[1 &#x05D 2; d]</bdi>...</div>
38 <div dir="rtl"><bdi>[:)]</bdi>, <bdi>[+- a &#x05D1;]</bdi>, <bdi>[1 &#x05D 2; d]</bdi>...</div> 39 <div dir="rtl"><bdi>[:)]</bdi>, <bdi>[+- a &#x05D1;]</bdi>, <bdi>[1 &#x05D 2; d]</bdi>...</div>
39 </div> 40 </div>
40 <div class="box"> 41 <div class="ref">
41 <div dir="ltr">&#x202D;[:)], [+- a &#x05D1;], [d &#x05D2; 1]...&#x202C;</d iv> 42 <div dir="ltr">&#x202D;[:)], [+- a &#x05D1;], [d &#x05D2; 1]...&#x202C;</d iv>
42 <div dir="rtl">&#x202D;...[d &#x05D2; 1] ,[+- a &#x05D1;] ,[:)]&#x202C;</d iv> 43 <div dir="rtl">&#x202D;...[d &#x05D2; 1] ,[+- a &#x05D1;] ,[:)]&#x202C;</d iv>
43 </div> 44 </div>
44 </body> 45 </body>
45 </html> 46 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698