Skip to content

Conversation

@yerke
Copy link
Contributor

@yerke yerke commented Oct 27, 2025

layout: Show pointer cursor for submit input with text value

Before:
Screenshot 2025-10-26 at 8 51 39 PM

After:
Screenshot 2025-10-26 at 8 54 19 PM

Testing: tested manually, as suggested by @jdm.
Fixes: #9084

@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Oct 27, 2025
@jdm
Copy link
Member

jdm commented Oct 27, 2025

Just to confirm: does the text cursor still appear for a normal text input? Does our behaviour match other browsers?

@yerke
Copy link
Contributor Author

yerke commented Oct 27, 2025

Yes, it does, as far as I could tell from my manual testing.

@servo-highfive servo-highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-awaiting-review There is new code that needs to be reviewed. labels Oct 27, 2025
@jdm jdm enabled auto-merge October 27, 2025 07:42
Comment on lines 155 to 156
overflow: hidden !important;
white-space: pre;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you removing overflow: hidden and white-space: pre here? Isn't it sufficient to simply remove cursor: text and to make the new rule?

cc @Loirooriol

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I returned the old block and added a new one. Now WPT tests pass, and the behavior is still the same in the PR description.

@servo-highfive servo-highfive added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Oct 27, 2025
@mrobinson
Copy link
Member

Looks like a good fix, but I want to double-check the removal of these two unrelated CSS rules before landing.

@jdm jdm disabled auto-merge October 27, 2025 08:56
Signed-off-by: Yerkebulan Tulibergenov <yerkebulan@gmail.com>
@servo-highfive servo-highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Nov 1, 2025
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Nov 1, 2025
@mrobinson mrobinson added this pull request to the merge queue Nov 1, 2025
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Nov 1, 2025
Merged via the queue into servo:main with commit 390cd00 Nov 1, 2025
35 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Nov 1, 2025
@yerke yerke deleted the fix-9084 branch November 1, 2025 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mousing over button text shouldn't show cursor=text

4 participants