WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
256811
textareas logical height with overflow auto shouldn't add scrollbar-thickness
https://bugs.webkit.org/show_bug.cgi?id=256811
Summary
textareas logical height with overflow auto shouldn't add scrollbar-thickness
Luke Warlow
Reported
2023-05-15 15:18:20 PDT
Currently in WebKit if a textarea has overflow auto and overflow-wrap normal, it includes the scrollbar thickness in the logical height. This check doesn't exist in Firefox and no longer exists in Chrome as of
https://chromium.googlesource.com/chromium/src/+/18481ffa332076e58fd9adbbea2062c2ba087dfb
It would be good to remove it from WebKit too for interop purposes. if ((isHorizontalWritingMode() && (style().overflowX() == Overflow::Scroll || (style().overflowX() == Overflow::Auto && innerText->renderer()->style().overflowWrap() == OverflowWrap::Normal))) || (!isHorizontalWritingMode() && (style().overflowY() == Overflow::Scroll || (style().overflowY() == Overflow::Auto && innerText->renderer()->style().overflowWrap() == OverflowWrap::Normal)))) logicalHeight += scrollbarThickness(); The above code inside of RenderTextControl.cpp would become something like the below code: if ((isHorizontalWritingMode() && style().overflowX() == Overflow::Scroll) || (!isHorizontalWritingMode() && style().overflowY() == Overflow::Scroll)) logicalHeight += scrollbarThickness();
Attachments
Patch
(2.21 KB, patch)
2023-05-17 19:58 PDT
,
zalan
no flags
Details
Formatted Diff
Diff
Patch
(82.95 KB, patch)
2023-05-18 08:24 PDT
,
zalan
no flags
Details
Formatted Diff
Diff
Patch
(49.96 KB, patch)
2023-05-18 08:38 PDT
,
zalan
no flags
Details
Formatted Diff
Diff
Patch
(50.06 KB, patch)
2023-05-19 06:39 PDT
,
zalan
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2023-05-15 20:05:48 PDT
<
rdar://problem/109384976
>
zalan
Comment 2
2023-05-17 19:58:01 PDT
Created
attachment 466393
[details]
Patch
zalan
Comment 3
2023-05-18 08:24:09 PDT
Created
attachment 466398
[details]
Patch
zalan
Comment 4
2023-05-18 08:38:34 PDT
Created
attachment 466399
[details]
Patch
Simon Fraser (smfr)
Comment 5
2023-05-18 14:05:09 PDT
Comment on
attachment 466399
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=466399&action=review
> COMMIT_MESSAGE:7 > +Merged from Blink:
https://chromium.googlesource.com/chromium/src/+/18481ffa332076e58fd9adbbea2062c2ba087dfb
I would like some more words here, explaining when we get a behavior change.
> COMMIT_MESSAGE:14 > +* LayoutTests/platform/mac/fast/forms/basic-textareas-expected.txt: WebKit matches Chrome now.
Don't care if it matches Chrome :)
zalan
Comment 6
2023-05-19 06:39:27 PDT
Created
attachment 466416
[details]
Patch
EWS
Comment 7
2023-05-19 07:53:43 PDT
Committed
264251@main
(8b48b8b9e8b8): <
https://commits.webkit.org/264251@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 466416
[details]
.
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