Closed Bug 1899462 Opened 1 year ago Closed 1 year ago

A box with border-radius does not scroll with the content

Categories

(Core :: Layout, defect)

Firefox 128
defect

Tracking

()

RESOLVED FIXED
128 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox126 --- unaffected
firefox127 --- unaffected
firefox128 --- fixed

People

(Reporter: st, Assigned: gw)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0

Steps to reproduce:

  1. Create a new, temporary profile
  2. Load the URL: data:text/html,<body style="height: 150vh"><div style="border-radius: 1em; background: lime">hello</div></body>
  3. Using the scroll-wheel, scroll down half a line

Actual results:

The text scrolls up half a line (as it should)
The bottom of the green background moves up half a line (as it should)
The top of the green background stays where it is, so it's only half a line thick instead of covering the full height of the text

Expected results:

The entire green bar should have scrolled up with the text.

Note that "background: lime" is not necessary to reproduce the behaviour, just to make it visible. For example, you can replace it with "overflow: hidden" and then it's the clipping region which fails to scroll instead of the background.

This is a screenshot of about:support, also scrolled up half a line. This page uses border-radius on tables and buttons, and also overflow: hidden on tables. As a result, you can see backgrounds (for border-radius) and content (for oveflow: hidden) being clipped to their original, unscrolled positions.

The Bugbug bot thinks this bug should belong to the 'Core::Layout' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Layout
Product: Firefox → Core

The offending patch of Bug 1898625 has already been backed out.

Can confirm this is working again in the latest Nightly.

Keywords: regression
Regressed by: 1898625

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

For more information, please visit BugBot documentation.

Flags: needinfo?(gwatson)
Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Flags: needinfo?(gwatson)
Resolution: --- → FIXED
Assignee: nobody → gwatson
Target Milestone: --- → 128 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: