RESOLVED FIXED 14972
Moving cursor down in contentEditable section fails if styled line-height:1em
https://bugs.webkit.org/show_bug.cgi?id=14972
Summary Moving cursor down in contentEditable section fails if styled line-height:1em
ben
Reported 2007-08-15 07:46:48 PDT
In r25065 and below, moving the cursor down in a contentEditable section doesn't work properly if the paragraph has CSS style line-height:1em;. See attached; to reproduce, click in editable area, press the down arrow key.
Attachments
html file illustrating problem (2.48 KB, text/html)
2007-08-15 07:47 PDT, ben
no flags
Change RenderText hit testing to prefer the lower of two overlapping lines (4.09 KB, patch)
2007-08-15 12:31 PDT, mitz
hyatt: review+
ben
Comment 1 2007-08-15 07:47:38 PDT
Created attachment 15979 [details] html file illustrating problem
David Kilzer (:ddkilzer)
Comment 2 2007-08-15 09:34:56 PDT
Confirmed with a local debug build of WebKit r25066 with Safari 3 Public Beta v. 3.0.3 (522.12.1) on Mac OS X 10.4.10 (8R218). This also reproduces on Safari 2.0.4 (419.3) with its original WebKit on 10.4.10, so it's not a regression. Also note the "lip" at the bottom of the <iframe> which bleeds through contents of the iframe! That looks like a different bug, although it's also present on Safari 2.0.4 as well.
mitz
Comment 3 2007-08-15 12:31:07 PDT
Created attachment 15984 [details] Change RenderText hit testing to prefer the lower of two overlapping lines No layout test regressions, but it is perhaps worth mentioning that a more local fix is possible by patching nextLinePosition() to pass a lower y coordinate to positionForCoordinates().
Dave Hyatt
Comment 4 2007-08-22 13:52:05 PDT
Comment on attachment 15984 [details] Change RenderText hit testing to prefer the lower of two overlapping lines r=me
Mark Rowe (bdash)
Comment 5 2007-08-25 05:32:07 PDT
Landed in r25235.
Mark Rowe (bdash)
Comment 6 2007-08-25 05:32:48 PDT
Note You need to log in before you can comment on or make changes to this bug.