Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / selection / vertical-rl-ltr-extend-line-forward-p.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="content-type" content="text/html; charset=utf-8">
5 <style> .selected { color: blue; } </style>
6 </head>
7 <body>
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>
10 <p>吾輩は猫である。</p>
11 <p>名前はまだ無い。</p>
12 </div>
13 <pre id="log"></pre>
14 <script>
15
16 var test = document.getElementById('test');
17 window.getSelection().collapse(test.getElementsByTagName('p')[0].firstChild, 2);
18 window.getSelection().modify('Extend', 'Forward', 'Line');
19
20 </script>
21 </body>
22 </html>