radio-appearance-native-vertical-rl-baseline.optional.html (1060B)
1 <!DOCTYPE html> 2 <link rel="author" title="Aditya Keerthi" href="https://github.com/pxlcoder"> 3 <link rel="help" href="https://html.spec.whatwg.org/#radio-button-state-(type=radio)"> 4 <link rel="help" href="https://drafts.csswg.org/css-writing-modes-4/#block-flow"> 5 <title>Test baseline alignment of radio buttons in vertical-rl writing mode.</title> 6 <meta charset="utf-8"> 7 <link rel="match" href="radio-appearance-native-vertical-rl-baseline.optional-ref.html"> 8 <style> 9 10 label { 11 color: red; 12 background-color: red; 13 margin-top: -30px; 14 } 15 16 </style> 17 <p>The radio button should be center-aligned with the label text since it is non-alphabetic.</p> 18 <div style="writing-mode: vertical-rl"> 19 <input type="radio" id="radio" checked> 20 <label for="radio">こんにちわ</label> 21 </div> 22 23 <br> 24 25 <p>The radio button should be left-aligned with the label text since it has text-orientation sideways.</p> 26 <div style="writing-mode: vertical-rl; text-orientation: sideways;"> 27 <input type="radio" id="radio" checked> 28 <label for="radio">Baseline</label> 29 </div>