4 <meta http-equiv="content-type" content="text/html; charset=utf-8">
5 <style> .selected { color: blue; } </style>
8 <p>This tests horizontal caret movement in vertical writing mode. "は猫である。" and "名前" must be selected.</p>
9 <div id="test" style="height: 30ex; -webkit-writing-mode: vertical-rl; outline: none;" contenteditable>
16 var test = document.getElementById('test');
17 window.getSelection().collapse(test.getElementsByTagName('p')[0].firstChild, 2);
18 window.getSelection().modify('Extend', 'Forward', 'Line');