Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / text / international / bidi-neutral-directionality-paragraph-start.html
blob4c56c77b97d6938a85f4957ac72f30a3dbf20ef4
1 <html>
2 <head>
3 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
4 </head>
5 <body>
6 <p>Mitz Pettel contributed this fix to KDE, and now we're rolling it in. Here's his explanation:</p>
7 <p>The directionality of a neutral character at the beginning of a paragraph (or after a hard line break) is decided incorrectly if the first non-neutral character in the paragraph has directionality opposite to the paragraph directionality. For example, if the paragraph direction is LTR, the first character on the paragraph is a question mark and the next one is a Hebrew character, then the question mark will is considered right-to-left and appears to the right of the Hebrew character.</p>
8 <p>The rule to follow is 3.3.4.N2 in the Unicode Standard's Bidirectional Algorithm <a href="http://www.unicode.org/reports/tr9/#Resolving_Neutral_Types">http://www.unicode.org/reports/tr9/#Resolving_Neutral_Types</a>.</p>
9 <p>If the test is successful, the question marks should be on the far left and far right of the next two paragraphs.</p>
10 <p dir="ltr">
11 ? ﺲ ﻭhello
12 </p>
13 <p dir="rtl">
14 ? hello ﺲ ﻭ
15 </p>
16 </body>
17 </html>