8 border:
1px solid black;
9 -webkit-writing-mode: vertical-rl;
12 <script src=
"../../resources/js-test.js"></script>
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 <div> containing a <br> in vertical writing mode.\nFor the test to pass, carets 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.');
17 document
.getElementById('textDiv').focus();
19 withTextCaretRect
= internals
.absoluteCaretBounds();
21 document
.getElementById('noTextDiv').focus();
23 withoutTextCaretRect
= internals
.absoluteCaretBounds();
25 if (window
.internals
) {
26 shouldBe("withTextCaretRect.top", "withoutTextCaretRect.top");
27 shouldBe("withTextCaretRect.width", "withoutTextCaretRect.width");
28 shouldBe("withTextCaretRect.height", "withoutTextCaretRect.height");
30 document
.getElementById('textDiv').style
.display
= 'none';
31 document
.getElementById('noTextDiv').style
.display
= 'none';
34 isSuccessfullyParsed();
38 <body onload=
"runTest();">
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>
41 <div id=
"description"></div>
42 <div id=
"console"></div>