WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
210622
Oversized caret and selection rects in text fields on ganji.com and netflix.com/login
https://bugs.webkit.org/show_bug.cgi?id=210622
Summary
Oversized caret and selection rects in text fields on ganji.com and netflix.c...
Wenson Hsieh
Reported
2020-04-16 15:23:36 PDT
<
rdar://problem/45945636
>
Attachments
Not for review
(4.32 KB, patch)
2020-04-16 15:28 PDT
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
Fixes the bug
(31.26 KB, patch)
2020-04-18 00:29 PDT
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
Minimal repro case
(33 bytes, text/html)
2020-04-18 07:48 PDT
,
Wenson Hsieh
no flags
Details
More rebaselining
(36.15 KB, patch)
2020-04-18 08:17 PDT
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Wenson Hsieh
Comment 1
2020-04-16 15:28:49 PDT
Comment hidden (obsolete)
Created
attachment 396709
[details]
Not for review
Wenson Hsieh
Comment 2
2020-04-18 00:29:26 PDT
Comment hidden (obsolete)
Created
attachment 396840
[details]
Fixes the bug
zalan
Comment 3
2020-04-18 06:52:43 PDT
Could you attach a simple test case, please (I can't tell from the test case which div is behaving correctly and which one is not)? I'd like to debug this a bit.
Wenson Hsieh
Comment 4
2020-04-18 07:47:25 PDT
(In reply to zalan from
comment #3
)
> Could you attach a simple test case, please (I can't tell from the test case > which div is behaving correctly and which one is not)? I'd like to debug > this a bit.
Sure! There’s not much to the minimal repro case; it’s just an editable root with a line height larger than the font size. E.g., data:text/html,<input style="line-height: 10em"> Both when the field is initially focused and when it has text, the caret height should be about the same as the font size. Currently, it is not (the height when the field is empty is the height of the field, and then it changes to be come ≈ font height + (line height / 2) once text is entered. In my test case, all text fields except for id="vertical” exhibit the undesired behavior.
Wenson Hsieh
Comment 5
2020-04-18 07:48:52 PDT
Created
attachment 396847
[details]
Minimal repro case
zalan
Comment 6
2020-04-18 07:51:36 PDT
It looks like the caret is not sitting on the baseline (initially).
Wenson Hsieh
Comment 7
2020-04-18 08:17:51 PDT
Created
attachment 396850
[details]
More rebaselining
Wenson Hsieh
Comment 8
2020-04-18 08:18:59 PDT
(In reply to zalan from
comment #6
)
> It looks like the caret is not sitting on the baseline (initially).
If it helps at all, we go through a different codepath (RenderBoxModelObject::localCaretRectForEmptyElement) when computing the caret rect in this case.
Wenson Hsieh
Comment 9
2020-04-20 08:44:07 PDT
Comment on
attachment 396850
[details]
More rebaselining Thanks for the review!
EWS
Comment 10
2020-04-20 08:53:53 PDT
Committed
r260367
: <
https://trac.webkit.org/changeset/260367
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 396850
[details]
.
zalan
Comment 11
2022-06-01 08:28:45 PDT
***
Bug 126193
has been marked as a duplicate of this bug. ***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug