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 } | 10 } |
11 </style> | 11 </style> |
12 <script src="../../fast/js/resources/js-test-pre.js"></script> | 12 <script src="../../resources/js-test.js"></script> |
13 <script> | 13 <script> |
14 function runTest() { | 14 function runTest() { |
15 description('Testcase for bug <a href="https://bugs.webkit.org/show_bug.cgi?
id=103621">103621</a>: Caret is incorrectly painted for a contenteditable <di
v> containing a <br> in vertical writing mode.\nFor the test to pass, c
arets in both the boxes should be exactly similar.\nTo manually verify the issue
, try clicking on the second box. A caret should be visible at the start of that
container.'); | 15 description('Testcase for bug <a href="https://bugs.webkit.org/show_bug.cgi?
id=103621">103621</a>: Caret is incorrectly painted for a contenteditable <di
v> containing a <br> in vertical writing mode.\nFor the test to pass, c
arets in both the boxes should be exactly similar.\nTo manually verify the issue
, try clicking on the second box. A caret should be visible at the start of that
container.'); |
16 | 16 |
17 document.getElementById('textDiv').focus(); | 17 document.getElementById('textDiv').focus(); |
18 if (window.internals) | 18 if (window.internals) |
19 withTextCaretRect = internals.absoluteCaretBounds(); | 19 withTextCaretRect = internals.absoluteCaretBounds(); |
20 | 20 |
21 document.getElementById('noTextDiv').focus(); | 21 document.getElementById('noTextDiv').focus(); |
22 if (window.internals) | 22 if (window.internals) |
(...skipping 12 matching lines...) Expand all Loading... |
35 } | 35 } |
36 </script> | 36 </script> |
37 </head> | 37 </head> |
38 <body onload="runTest();"> | 38 <body onload="runTest();"> |
39 <div contenteditable="true" style="float: left;" class="editableDiv" id="textDiv
"><br>some text</div> | 39 <div contenteditable="true" style="float: left;" class="editableDiv" id="textDiv
"><br>some text</div> |
40 <div contenteditable="true" class="editableDiv" id="noTextDiv"><br></div> | 40 <div contenteditable="true" class="editableDiv" id="noTextDiv"><br></div> |
41 <div id="description"></div> | 41 <div id="description"></div> |
42 <div id="console"></div> | 42 <div id="console"></div> |
43 </body> | 43 </body> |
44 </html> | 44 </html> |
OLD | NEW |