text-combine-upright-all-001-manual.html (1112B)
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="utf-8"/> 5 <title>text-combine-upright:all (up to 2 chars)</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/#text-combine-upright"/> 8 <meta name="assert" content="text-combine-upright:digits will display two-character numbers and text horizontally."/> 9 <style type="text/css"> 10 @font-face { 11 font-family: "webfont"; 12 src: url("/fonts/CSSTest/mplus-1p-regular.woff") format("woff"); 13 font-weight: normal; 14 font-style: normal; 15 } 16 .test, .ref { font-family: webfont, serif; font-size: 24px; height: 300px; width: 300px; } 17 </style> 18 <!-- this is the test --> 19 <style type="text/css"> 20 .test { writing-mode: vertical-rl; } 21 .test span { text-combine-upright: all; } 22 </style> 23 </head> 24 <body> 25 <p class="instructions" dir="ltr">Test passes if all numbers and the text GI are upright and not more than one cell wide.</p> 26 <div class="test"> 27 <p lang="ja"><span>今日</span>は<span>5</span>月<span>12</span>日です。<span>GI</span></p> 28 </div> 29 </body> 30 </html>