block-plaintext-006.html (2110B)
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="utf-8"/> 5 <title>unicode-bidi: pre plaintext</title> 6 7 <link rel="author" title="Richard Ishida" href='mailto:ishida@w3.org'/> 8 <link rel="help" href='http://www.w3.org/TR/css-writing-modes-3/#text-direction'/> 9 <link rel="match" href="reference/block-plaintext-006.html"/> 10 <meta name="assert" content='If unicode-bidi:plaintext is applied to a pre element, each line of characters after a linebreak is displayed according to the first strong character after the linebreak.'/> 11 <style type="text/css"> 12 .test pre { unicode-bidi: plaintext; } 13 14 /* the following styles are not part of the test */ 15 .test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; width: 10em; padding: 5px; clear: both; } 16 input { margin: 5px; } 17 @font-face { 18 font-family: 'ezra_silregular'; 19 src: url('/fonts/sileot-webfont.woff') format('woff'); 20 font-weight: normal; 21 font-style: normal; 22 } 23 .test, .ref { font-family: ezra_silregular, serif; } 24 pre { font-family: ezra_silregular, serif; width: 100%; border: 0; margin: 0; font-size: 1em; } 25 </style> 26 </head> 27 <body> 28 <p class="instructions" dir="ltr">Test passes if the two boxes display the same glyphs in the same order, with the same line breaks.</p> 29 30 31 <!--Notes: 32 Key to entities used below: 33 א ... ו - The first six Hebrew letters (strongly RTL). 34 ‭ - The LRO (left-to-right-override) formatting character. 35 ‬ - The PDF (pop directional formatting) formatting character; closes LRO. 36 --> 37 38 39 <div class="test"> 40 <pre><!-- comment token so following LF character isn't ignored by the HTML parser --> 41 > a > ב > c > 42 > א > b > ג > 43 > a > ב > c > 44 <!-- need a blank line for whitespace to appear--> 45 </pre> 46 </div> 47 48 <div class="ref"> 49 <div> </div> 50 <div dir="ltr">‭> a > ב > c >‬</div> 51 <div dir="rtl">‭< ג < b < א <‬</div> 52 <div dir="ltr">‭> a > ב > c >‬</div> 53 <div> </div> 54 </div> 55 56 57 58 59 60 </body></html>