Open Bug 1801340 Opened 3 years ago Updated 3 years ago

Abolute element positioned outside the parent container causes infinite horizontal scroll

Categories

(Core :: Layout, defect)

Firefox 107
defect

Tracking

()

People

(Reporter: connor.holloway, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:107.0) Gecko/20100101 Firefox/107.0

Steps to reproduce:

Create a horizontally scrolling container.
Within it create a sticky header with a left of 0px. Make it larger than the container to fin
Inside the header create a component with absolute position and a right of -10px.

Example: https://jsfiddle.net/connor_holloway_xerini/q15rwL86/3/

Scroll to the right

Actual results:

You can keep scrolling to the right, scrollbar gets smaller and smaller. Header remains stuck to the left.

Expected results:

Stops scrolling, the header should go past the left border if it is too long.

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
Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: