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.</p>
9 <div id="test" style="font-family: monospace; font-size: 20px; height: 15ex; -webkit-writing-mode: vertical-rl; outline: none;" contenteditable>
10 <p dir="rtl">אני חתול.</p><p dir="rtl">אין לי שם.</p>
15 var test = document.getElementById('test');
16 window.getSelection().collapse(test.getElementsByTagName('p')[1].lastChild, 5);
17 window.getSelection().modify('Extend', 'Backward', 'Line');