text-combine-upright-digits-002-manual.html (1042B)
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="utf-8"/> 5 <title>text-combine-upright:digits 2</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-4/#text-combine-upright"/> 8 <meta name="assert" content="text-combine-upright:digits 2 will display two-digit numbers horizontally, but not others."/> 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; text-combine-upright: digits 2; } 21 </style> 22 </head> 23 <body> 24 <p class="instructions" dir="ltr">Test passes if 5 and 12 are upright, and 2016 and 242 are not.</p> 25 <div class="test"> 26 <p lang="ja">今日は2016年5月12日です。242日目です。</p> 27 </div> 28 </body> 29 </html>