writing-mode-vlr-009-manual.html (1214B)
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="utf-8"/> 5 <title>writing mode:vertical-rl, default Arabic direction</title> 6 <link rel="author" title="Richard Ishida" href="mailto:ishida@w3.org"/> 7 <link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#block-flow"/> 8 <meta name="assert" content="By default, writing-mode:vertical-lr will display Arabic characters progressing up the page."/> 9 <style type="text/css"> 10 @font-face { 11 font-family: 'webfont'; 12 src: url('/fonts/noto/NotoSansMongolian-regular.woff2') format('woff2'); 13 font-weight: normal; 14 font-style: normal; 15 } 16 .test, .ref { font-family: webfont, serif; font-size: 24px; float: left; margin-right: 30px; color: #ccc; } 17 span[lang=ar] { color: black; } 18 </style> 19 <!-- this is the test --> 20 <style type="text/css"> 21 .test { writing-mode: vertical-rl; } 22 </style> 23 </head> 24 <body> 25 <p class="instructions">Test passes if the text runs vertically and the order of the Arabic characters is the same as on the blue background.</p> 26 <div class="test" lang="mn">ᠮᠤᠩᠭᠤᠯ <span lang="ar">نشاط التدويل</span> ᠤᠯᠤᠰ</div> 27 <div class="ref"><img src="support/mn+arabic.png" alt="ref image"/></div> 28 </body> 29 </html>