Closed Bug 1991290 Opened 3 months ago Closed 3 months ago

wrong mask on text for <input type="text" /> with border-radius

Categories

(Core :: Layout: Form Controls, defect)

Firefox 143
defect

Tracking

()

RESOLVED FIXED
145 Branch
Tracking Status
firefox-esr115 --- wontfix
firefox-esr140 --- wontfix
firefox143 --- wontfix
firefox144 --- wontfix
firefox145 --- fixed

People

(Reporter: david.scheipers, Assigned: emilio)

References

(Regression)

Details

(Keywords: nightly-community, regression)

Attachments

(6 files)

Attached image Firefox text cut off

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:143.0) Gecko/20100101 Firefox/143.0

Steps to reproduce:

Demo

Adding:

border-radius: 20px;
padding-left: 5px;"

to an input type="text" or input type="search" creates a mask that should prevent the selection and text from leaving the element.

Actual results:

This mask does not align with the actual element. It cuts off the text highlighter and text in the wrong place. See the screenshot or demo.

Expected results:

It should look like the other screenshot of Chrome. The text and highlighter should only be cut off at the edge of the element.

Attached image Chrome

Sorry if this is a duplicate report. I couldn't find anything, and Bugzilla is still quite confusing to me, especially adding images.

Component: DOM: Forms → Layout: Form Controls
Status: UNCONFIRMED → NEW
Ever confirmed: true
Regressed by: 1800077

Set release status flags based on info from the regressing bug 1800077

:emilio, since you are the author of the regressor, bug 1800077, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

I can repro, thanks. Minimal test-case is data:text/html,<input type="search" value="Text" style="border-radius: 20px; border: 1px solid; padding-left: 5px">.

FWIW, if I add overflow: clip to the test-case, regression goes all the way back to the implementation of overflow: clip in bug 1531609.

Regressed by: 1531609

As per other discussions we don't really want to expose this property to
authors, so there's no benefit in letting them override it.

This property's content-box value doesn't play nice with border-radius
(well, it does deal with it correctly, but it doesn't do what we want it
to do).

Assignee: nobody → emilio
Status: NEW → ASSIGNED

We don't want to apply these to things that aren't scroll containers.

Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/3a1387c8bd06 https://hg.mozilla.org/integration/autoland/rev/55ced7623635 Apply overflow-clip-box to input's scroll containers explicitly. r=tnikkel,layout-reviewers https://github.com/mozilla-firefox/firefox/commit/2fd167cd791b https://hg.mozilla.org/integration/autoland/rev/ce0a1257b748 Remove some overflow-clip-box handling that can't happen anymore. r=tnikkel,layout-reviewers https://github.com/mozilla-firefox/firefox/commit/8009b1d53041 https://hg.mozilla.org/integration/autoland/rev/43a54a38cf83 Remove some other overflow-clip-box: inherit usage that we don't care about. r=tnikkel,layout-reviewers

The patch landed in nightly and beta is affected.
:emilio, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(emilio)

Very long-standing regression, can probably ride the trains.

Flags: needinfo?(emilio)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: