OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 .editableDiv { | 5 .editableDiv { |
6 height: 200px; | 6 height: 200px; |
7 width: 200px; | 7 width: 200px; |
8 border: 1px solid black; | 8 border: 1px solid black; |
9 -webkit-writing-mode: vertical-rl; | 9 -webkit-writing-mode: vertical-rl; |
10 font-family: ahem; | 10 font-family: ahem; |
11 } | 11 } |
12 </style> | 12 </style> |
13 <script src="../../fast/js/resources/js-test-pre.js"></script> | 13 <script src="../../resources/js-test.js"></script> |
14 <script> | 14 <script> |
15 function runTest() { | 15 function runTest() { |
16 description('Testcase for bug <a href="https://bugs.webkit.org/show_bug.cgi?
id=102359">102359</a>: Caret is painted horizontally in vertical writing mode wh
en there are no visible text.'); | 16 description('Testcase for bug <a href="https://bugs.webkit.org/show_bug.cgi?
id=102359">102359</a>: Caret is painted horizontally in vertical writing mode wh
en there are no visible text.'); |
17 | 17 |
18 /* Caret rect for the empty container. */ | 18 /* Caret rect for the empty container. */ |
19 document.getElementById('emptyDiv').focus(); | 19 document.getElementById('emptyDiv').focus(); |
20 if (window.internals) | 20 if (window.internals) |
21 emptyDivCaretRect = internals.absoluteCaretBounds(); | 21 emptyDivCaretRect = internals.absoluteCaretBounds(); |
22 | 22 |
23 /* Caret rect for am empty line. */ | 23 /* Caret rect for am empty line. */ |
(...skipping 22 matching lines...) Expand all Loading... |
46 </script> | 46 </script> |
47 </head> | 47 </head> |
48 <body onload="runTest();"> | 48 <body onload="runTest();"> |
49 <div style="float: left;" contenteditable="true" class="editableDiv" id="emptyDi
v"></div> | 49 <div style="float: left;" contenteditable="true" class="editableDiv" id="emptyDi
v"></div> |
50 <div style="float: left;" contenteditable="true" class="editableDiv" id="emptyLi
neDiv"><div><br></div></div> | 50 <div style="float: left;" contenteditable="true" class="editableDiv" id="emptyLi
neDiv"><div><br></div></div> |
51 <div contenteditable="true" class="editableDiv" id="textDiv">this is some vertic
al text</div> | 51 <div contenteditable="true" class="editableDiv" id="textDiv">this is some vertic
al text</div> |
52 <div id="description"></div> | 52 <div id="description"></div> |
53 <div id="console"></div> | 53 <div id="console"></div> |
54 </body> | 54 </body> |
55 </html> | 55 </html> |
OLD | NEW |