writing-mode-vrl-forms-005-manual.html (1273B)
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="utf-8"/> 5 <title>writing mode:vertical-rl, select, selected item</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="flags" content="should"/> 9 <meta name="assert" content="writing-mode:vertical-rl will display a select box vertically, and the selected item will be displayed vertically."/> 10 <style type="text/css"> 11 @font-face { 12 font-family: "webfont"; 13 src: url("/fonts/mplus-1p-regular.woff") format("woff"); 14 font-weight: normal; 15 font-style: normal; 16 } 17 select { font-family: webfont; font-size: 24px; } 18 .test { text-align: center; vertical-align: middle; width: 100%; } 19 </style> 20 <!-- this is the test --> 21 <style type="text/css"> 22 .test { writing-mode: vertical-rl; } 23 </style> 24 </head> 25 <body> 26 <p class="instructions">Test passes if the displayed selection area is vertical and the text inside it has default vertical settings.</p> 27 <div class="test"> 28 <select> 29 <option value="1">国际化活动item1万维网联盟</option> 30 <option value="2">国际化活动item2万维网联盟</option> 31 <option value="3">国际化活动item3万维网联盟</option> 32 </select> 33 </div> 34 </body> 35 </html>