[Webkit-unassigned] [Bug 49508] RTL: Caret can paint over letters when in the end of a line in textareas

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 22 17:26:55 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=49508





--- Comment #16 from Xiaomei Ji <xji at chromium.org>  2011-03-22 17:26:55 PST ---
(In reply to comment #15)
> (In reply to comment #14)
> > what to check against in the wrap case?
> 
> What if we compared the delta to compute width of each characters using caret rect and compared that with the case when the entire text appears in single line?  Character widths (differences in caret rect) should match, right?

Looks like it is doable for horizontal writing mode, with the fixes of bug 56854 and another minor fix in RenderText::localCaretRect() (then, character width matches).

Vertical text has some problems though. Using the following example:
<div contenteditable id="vertical-rl" style="padding:0; margin:0; height:175px; -webkit-writing-mode: vertical-rl; font: 8px;">דגלחכ גדכ לחידגכ יחעדד</div>

The size of the Hebrew text is <172px, but with height of 175px, the text is rendered as 2 lines when page is first loaded. But it renders as one line when reload the page. Looks like a bug.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list