OLD | NEW |
(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 א ... ט - The first nine Hebrew letters (strongly RTL). |
| 36 ‎ - The LRM (left-to-right mark) formatting character (invisible,
stronly LTR). |
| 37 ‏ - The RLM (right-to-left mark) formatting character (invisible,
stronly RTL). |
| 38 ‭ - The LRO (left-to-right override) formatting character. |
| 39 ‬ - The PDF (pop directional formatting) formatting character; cl
oses LRO. |
| 40 </div> |
| 41 <div class="test"> |
| 42 בא‎ |
| 43 <bdo dir="rtl">ih |
| 44 <bdo dir="ltr">גד |
| 45 <span dir="rtl">fg‏ |
| 46 <span dir="ltr">1. I like ה.<br/> |
| 47 2. ה is great!</span> |
| 48 ‏cd</span> |
| 49 וז</bdo> |
| 50 ba</bdo> |
| 51 ‎טח |
| 52 </div> |
| 53 <div class="ref"> |
| 54 ‭אב גד 1. I like ה. fg hi‬
; |
| 55 <br/> |
| 56 ‭ab cd 2. ה is great! וז חט 
2C; |
| 57 </div> |
| 58 </body> |
| 59 </html> |
OLD | NEW |