Make <textarea> resize handle consistently sized and spaced [chromium/src : main]

2 views
Skip to first unread message

Joey Arhar (Gerrit)

unread,
Jul 15, 2026, 5:39:10 PM (13 days ago) Jul 15
to Olga Gerchikov, Menard, Alexis, SLSA Policy Verification Service, Xianzhu Wang, Zijie He, David Bokan, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, feature-me...@chromium.org, print-rev...@chromium.org, jshin...@chromium.org, blink-revie...@chromium.org, cros-print...@google.com, blink-rev...@chromium.org, devtools-re...@chromium.org, mac-r...@chromium.org, mattreyno...@chromium.org, fuchsia...@chromium.org, odejesu...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org
Attention needed from Xianzhu Wang

Joey Arhar added 1 comment

File third_party/blink/renderer/core/paint/paint_layer_scrollable_area.cc
Line 327, Patchset 10 (Latest): !has_custom_scrollbar &&
Joey Arhar . unresolved

I added this in order to fix some c++ tests. Does it look correct?

Open in Gerrit

Related details

Attention is currently required from:
  • Xianzhu Wang
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ie05ae28b60db3830048386ece99ba3e7ba0a1249
Gerrit-Change-Number: 6124972
Gerrit-PatchSet: 10
Gerrit-Owner: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: SLSA Policy Verification Service <devtools-gerritco...@google.com>
Gerrit-Reviewer: Xianzhu Wang <wangx...@chromium.org>
Gerrit-CC: David Bokan <bo...@chromium.org>
Gerrit-CC: Menard, Alexis <alexis...@intel.com>
Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
Gerrit-CC: Zijie He <zij...@google.com>
Gerrit-Attention: Xianzhu Wang <wangx...@chromium.org>
Gerrit-Comment-Date: Wed, 15 Jul 2026 21:38:52 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Xianzhu Wang (Gerrit)

unread,
Jul 15, 2026, 8:24:30 PM (13 days ago) Jul 15
to SLSA Policy Verification Service, Olga Gerchikov, Menard, Alexis, Zijie He, David Bokan, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, blink-revie...@chromium.org, feature-me...@chromium.org, print-rev...@chromium.org, jshin...@chromium.org, blink-revie...@chromium.org, cros-print...@google.com, blink-rev...@chromium.org, devtools-re...@chromium.org, mac-r...@chromium.org, mattreyno...@chromium.org, fuchsia...@chromium.org, odejesu...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org
Attention needed from Joey Arhar

Xianzhu Wang added 1 comment

File third_party/blink/renderer/core/paint/paint_layer_scrollable_area.cc
Line 327, Patchset 10: !has_custom_scrollbar &&
Joey Arhar . unresolved

I added this in order to fix some c++ tests. Does it look correct?

Xianzhu Wang

I'm afraid if we have an overlay scrollbar in one orientation and a custom scrollbar in another orientation we may still get a small resizer area (thin in the overlay orientation). How about `all_scrollbars_are_custom` instead of `has_custom_scrollbar`?

Open in Gerrit

Related details

Attention is currently required from:
  • Joey Arhar
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ie05ae28b60db3830048386ece99ba3e7ba0a1249
Gerrit-Change-Number: 6124972
Gerrit-PatchSet: 12
Gerrit-Owner: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: SLSA Policy Verification Service <devtools-gerritco...@google.com>
Gerrit-Reviewer: Xianzhu Wang <wangx...@chromium.org>
Gerrit-CC: David Bokan <bo...@chromium.org>
Gerrit-CC: Menard, Alexis <alexis...@intel.com>
Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
Gerrit-CC: Zijie He <zij...@google.com>
Gerrit-Attention: Joey Arhar <jar...@chromium.org>
Gerrit-Comment-Date: Thu, 16 Jul 2026 00:24:07 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Joey Arhar <jar...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Joey Arhar (Gerrit)

unread,
Jul 17, 2026, 7:40:11 PM (11 days ago) Jul 17
to SLSA Policy Verification Service, Olga Gerchikov, Menard, Alexis, Xianzhu Wang, Zijie He, David Bokan, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, blink-revie...@chromium.org, feature-me...@chromium.org, print-rev...@chromium.org, jshin...@chromium.org, blink-revie...@chromium.org, cros-print...@google.com, blink-rev...@chromium.org, devtools-re...@chromium.org, mac-r...@chromium.org, mattreyno...@chromium.org, fuchsia...@chromium.org, odejesu...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org
Attention needed from Xianzhu Wang

Joey Arhar added 1 comment

File third_party/blink/renderer/core/paint/paint_layer_scrollable_area.cc
Line 327, Patchset 10: !has_custom_scrollbar &&
Joey Arhar . unresolved

I added this in order to fix some c++ tests. Does it look correct?

Xianzhu Wang

I'm afraid if we have an overlay scrollbar in one orientation and a custom scrollbar in another orientation we may still get a small resizer area (thin in the overlay orientation). How about `all_scrollbars_are_custom` instead of `has_custom_scrollbar`?

Joey Arhar

thanks, i renamed the variable. does the logic otherwise look ok?

Open in Gerrit

Related details

Attention is currently required from:
  • Xianzhu Wang
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ie05ae28b60db3830048386ece99ba3e7ba0a1249
Gerrit-Change-Number: 6124972
Gerrit-PatchSet: 12
Gerrit-Owner: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: SLSA Policy Verification Service <devtools-gerritco...@google.com>
Gerrit-Reviewer: Xianzhu Wang <wangx...@chromium.org>
Gerrit-CC: David Bokan <bo...@chromium.org>
Gerrit-CC: Menard, Alexis <alexis...@intel.com>
Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
Gerrit-CC: Zijie He <zij...@google.com>
Gerrit-Attention: Xianzhu Wang <wangx...@chromium.org>
Gerrit-Comment-Date: Fri, 17 Jul 2026 23:39:53 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Joey Arhar <jar...@chromium.org>
Comment-In-Reply-To: Xianzhu Wang <wangx...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Xianzhu Wang (Gerrit)

unread,
Jul 18, 2026, 12:20:54 AM (11 days ago) Jul 18
to SLSA Policy Verification Service, Olga Gerchikov, Menard, Alexis, Zijie He, David Bokan, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, mschillaci...@google.com, blink-revie...@chromium.org, feature-me...@chromium.org, print-rev...@chromium.org, jshin...@chromium.org, blink-revie...@chromium.org, cros-print...@google.com, blink-rev...@chromium.org, devtools-re...@chromium.org, mac-r...@chromium.org, mattreyno...@chromium.org, fuchsia...@chromium.org, odejesu...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org
Attention needed from Joey Arhar

Xianzhu Wang added 1 comment

File third_party/blink/renderer/core/paint/paint_layer_scrollable_area.cc
Line 327, Patchset 10: !has_custom_scrollbar &&
Joey Arhar . unresolved

I added this in order to fix some c++ tests. Does it look correct?

Xianzhu Wang

I'm afraid if we have an overlay scrollbar in one orientation and a custom scrollbar in another orientation we may still get a small resizer area (thin in the overlay orientation). How about `all_scrollbars_are_custom` instead of `has_custom_scrollbar`?

Joey Arhar

thanks, i renamed the variable. does the logic otherwise look ok?

Xianzhu Wang

I meant the variable could be changed to reflect whether all scrollbars are custom, not just a rename, thus we'll use fixed size in the mixed custom/overlay scrollbars scenario.

However, now I'm inclined to the previous patchset than that idea. In the mixed scrollbar scenario, at least the author can control the size of the resizer in one direction, and the resizer won't interfere with the custom scrollbar.

Open in Gerrit

Related details

Attention is currently required from:
  • Joey Arhar
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ie05ae28b60db3830048386ece99ba3e7ba0a1249
Gerrit-Change-Number: 6124972
Gerrit-PatchSet: 13
Gerrit-Owner: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: SLSA Policy Verification Service <devtools-gerritco...@google.com>
Gerrit-Reviewer: Xianzhu Wang <wangx...@chromium.org>
Gerrit-CC: David Bokan <bo...@chromium.org>
Gerrit-CC: Menard, Alexis <alexis...@intel.com>
Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
Gerrit-CC: Zijie He <zij...@google.com>
Gerrit-Attention: Joey Arhar <jar...@chromium.org>
Gerrit-Comment-Date: Sat, 18 Jul 2026 04:20:33 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

Xianzhu Wang (Gerrit)

unread,
Jul 20, 2026, 11:57:39 AM (8 days ago) Jul 20
to SLSA Policy Verification Service, Olga Gerchikov, Menard, Alexis, Zijie He, David Bokan, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, mschillaci...@google.com, blink-revie...@chromium.org, feature-me...@chromium.org, print-rev...@chromium.org, jshin...@chromium.org, blink-revie...@chromium.org, cros-print...@google.com, blink-rev...@chromium.org, devtools-re...@chromium.org, mac-r...@chromium.org, mattreyno...@chromium.org, fuchsia...@chromium.org, odejesu...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org
Attention needed from Joey Arhar

Xianzhu Wang added 1 comment

File third_party/blink/renderer/core/paint/paint_layer_scrollable_area.cc
Line 327, Patchset 10: !has_custom_scrollbar &&
Joey Arhar . unresolved

I added this in order to fix some c++ tests. Does it look correct?

Xianzhu Wang

I'm afraid if we have an overlay scrollbar in one orientation and a custom scrollbar in another orientation we may still get a small resizer area (thin in the overlay orientation). How about `all_scrollbars_are_custom` instead of `has_custom_scrollbar`?

Joey Arhar

thanks, i renamed the variable. does the logic otherwise look ok?

Xianzhu Wang

I meant the variable could be changed to reflect whether all scrollbars are custom, not just a rename, thus we'll use fixed size in the mixed custom/overlay scrollbars scenario.

However, now I'm inclined to the previous patchset than that idea. In the mixed scrollbar scenario, at least the author can control the size of the resizer in one direction, and the resizer won't interfere with the custom scrollbar.

Xianzhu Wang

I just tried to create a test case with mixed custom and overlay scrollbars to see how it looks with this CL, but it wasn't successful. It seems that we require both scrollbars to be custom or none, so the situation of my concern in my previous comment doesn't seem to exist. LGTM with the original name `has_custom_scrollbar` because it reflects the logic (though the new name also reflects the reality).

Open in Gerrit

Related details

Attention is currently required from:
  • Joey Arhar
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ie05ae28b60db3830048386ece99ba3e7ba0a1249
Gerrit-Change-Number: 6124972
Gerrit-PatchSet: 14
Gerrit-Owner: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: SLSA Policy Verification Service <devtools-gerritco...@google.com>
Gerrit-Reviewer: Xianzhu Wang <wangx...@chromium.org>
Gerrit-CC: David Bokan <bo...@chromium.org>
Gerrit-CC: Menard, Alexis <alexis...@intel.com>
Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
Gerrit-CC: Zijie He <zij...@google.com>
Gerrit-Attention: Joey Arhar <jar...@chromium.org>
Gerrit-Comment-Date: Mon, 20 Jul 2026 15:57:18 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

Joey Arhar (Gerrit)

unread,
Jul 22, 2026, 11:56:21 AM (6 days ago) Jul 22
to SLSA Policy Verification Service, Olga Gerchikov, Menard, Alexis, Xianzhu Wang, Zijie He, David Bokan, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, mschillaci...@google.com, blink-revie...@chromium.org, feature-me...@chromium.org, print-rev...@chromium.org, jshin...@chromium.org, blink-revie...@chromium.org, cros-print...@google.com, blink-rev...@chromium.org, devtools-re...@chromium.org, mac-r...@chromium.org, mattreyno...@chromium.org, fuchsia...@chromium.org, odejesu...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org
Attention needed from Xianzhu Wang

Joey Arhar added 2 comments

File third_party/blink/renderer/core/paint/paint_layer_scrollable_area.cc
Line 325, Patchset 15: GetLayoutBox()->CanResize() && !has_custom_scrollbar &&
Joey Arhar . unresolved

I just added this to fix overlay-scrollbars.html - we shouldn't use a fixed size if there is not actually a resizer. This was affecting the scrollbars of scrollable areas that aren't resizable.

Line 327, Patchset 10: !has_custom_scrollbar &&
Joey Arhar . unresolved

I added this in order to fix some c++ tests. Does it look correct?

Xianzhu Wang

I'm afraid if we have an overlay scrollbar in one orientation and a custom scrollbar in another orientation we may still get a small resizer area (thin in the overlay orientation). How about `all_scrollbars_are_custom` instead of `has_custom_scrollbar`?

Joey Arhar

thanks, i renamed the variable. does the logic otherwise look ok?

Xianzhu Wang

I meant the variable could be changed to reflect whether all scrollbars are custom, not just a rename, thus we'll use fixed size in the mixed custom/overlay scrollbars scenario.

However, now I'm inclined to the previous patchset than that idea. In the mixed scrollbar scenario, at least the author can control the size of the resizer in one direction, and the resizer won't interfere with the custom scrollbar.

Joey Arhar

Thanks, I put the name back to the previous one and rewrote the comment. How does it look?

Open in Gerrit

Related details

Attention is currently required from:
  • Xianzhu Wang
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ie05ae28b60db3830048386ece99ba3e7ba0a1249
Gerrit-Change-Number: 6124972
Gerrit-PatchSet: 15
Gerrit-Owner: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: SLSA Policy Verification Service <devtools-gerritco...@google.com>
Gerrit-Reviewer: Xianzhu Wang <wangx...@chromium.org>
Gerrit-CC: David Bokan <bo...@chromium.org>
Gerrit-CC: Menard, Alexis <alexis...@intel.com>
Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
Gerrit-CC: Zijie He <zij...@google.com>
Gerrit-Attention: Xianzhu Wang <wangx...@chromium.org>
Gerrit-Comment-Date: Wed, 22 Jul 2026 15:55:55 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

Xianzhu Wang (Gerrit)

unread,
Jul 22, 2026, 1:41:45 PM (6 days ago) Jul 22
to SLSA Policy Verification Service, Olga Gerchikov, Menard, Alexis, Zijie He, David Bokan, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, mschillaci...@google.com, blink-revie...@chromium.org, feature-me...@chromium.org, print-rev...@chromium.org, jshin...@chromium.org, blink-revie...@chromium.org, cros-print...@google.com, blink-rev...@chromium.org, devtools-re...@chromium.org, mac-r...@chromium.org, mattreyno...@chromium.org, fuchsia...@chromium.org, odejesu...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org, blink-...@chromium.org, blink-rev...@chromium.org
Attention needed from Joey Arhar

Xianzhu Wang added 3 comments

Patchset-level comments
File-level comment, Patchset 16 (Latest):
Xianzhu Wang . resolved

Will CR+1 once all tests are fixed.

File third_party/blink/renderer/core/paint/paint_layer_scrollable_area.cc
Line 325, Patchset 15: GetLayoutBox()->CanResize() && !has_custom_scrollbar &&
Joey Arhar . resolved

I just added this to fix overlay-scrollbars.html - we shouldn't use a fixed size if there is not actually a resizer. This was affecting the scrollbars of scrollable areas that aren't resizable.

Xianzhu Wang

Acknowledged

Line 327, Patchset 10: !has_custom_scrollbar &&
Joey Arhar . resolved

I added this in order to fix some c++ tests. Does it look correct?

Xianzhu Wang

I'm afraid if we have an overlay scrollbar in one orientation and a custom scrollbar in another orientation we may still get a small resizer area (thin in the overlay orientation). How about `all_scrollbars_are_custom` instead of `has_custom_scrollbar`?

Joey Arhar

thanks, i renamed the variable. does the logic otherwise look ok?

Xianzhu Wang

I meant the variable could be changed to reflect whether all scrollbars are custom, not just a rename, thus we'll use fixed size in the mixed custom/overlay scrollbars scenario.

However, now I'm inclined to the previous patchset than that idea. In the mixed scrollbar scenario, at least the author can control the size of the resizer in one direction, and the resizer won't interfere with the custom scrollbar.

Joey Arhar

Thanks, I put the name back to the previous one and rewrote the comment. How does it look?

Xianzhu Wang

Acknowledged

Open in Gerrit

Related details

Attention is currently required from:
  • Joey Arhar
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ie05ae28b60db3830048386ece99ba3e7ba0a1249
    Gerrit-Change-Number: 6124972
    Gerrit-PatchSet: 16
    Gerrit-Owner: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: SLSA Policy Verification Service <devtools-gerritco...@google.com>
    Gerrit-Reviewer: Xianzhu Wang <wangx...@chromium.org>
    Gerrit-CC: David Bokan <bo...@chromium.org>
    Gerrit-CC: Menard, Alexis <alexis...@intel.com>
    Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
    Gerrit-CC: Zijie He <zij...@google.com>
    Gerrit-Attention: Joey Arhar <jar...@chromium.org>
    Gerrit-Comment-Date: Wed, 22 Jul 2026 17:41:18 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages