Open Bug 1260068 Opened 10 years ago Updated 4 years ago

Horizontal unscrollable scrollbar when content would overflow vertically without vertical scrollbar but fits with it

Categories

(Core :: Layout, defect)

defect

Tracking

()

REOPENED
Tracking Status
firefox62 --- affected

People

(Reporter: Oriol, Unassigned)

Details

Attachments

(1 file, 2 obsolete files)

Attached file Demo (obsolete) —
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:48.0) Gecko/20100101 Firefox/48.0 Build ID: 20160326030430 Steps to reproduce: Open the attached demo. Actual results: Unscrollable scrollbars appear in the viewport. Expected results: The scrollbars shouldn't be there. Pushlog: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=1401e4b394ad&tochange=42b2a2adda8f That's when support for multi-line flexbox landed.
Version: unspecified → Trunk
Painful shade of blue, but no extra scrollbars for me.
Attached image Screenshot (obsolete) —
Still reproducible for me.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached file Demo —
This testcase is simpler. In fact, flexbox is not needed. 1. Let a first box take almost all available space 2. The second box initially attempts to fit in the remaining space 3. The 2nd box has two children. Each one fit in that space, but not both, so they stack vertically. 4. But if they are tall enough, they will produce vertical overflow, and a vertical scrollbar will be added. 5. This scrollbar reduces the remaining space even more, now the children don't fit, so both of them are moved to the next line 6. Now they can stack horizontally, so they take less vertical space, and don't produce vertical overflow, so the vertical scrollbar becomes useless. So in fact this makes sense. What doesn't make sense is having an unscrollable horizontal scrollbar. Behavior in various browsers: - Firefox: vertical and horizontal unscrollable scrollbars - Edge: only vertical unscrollable scrollbar - Chrome: no scrollbars despite overflow. I think Edge handles this properly.
Attachment #8735323 - Attachment is obsolete: true
Attachment #8857613 - Attachment is obsolete: true
Summary: Multiline flexbox produces unscrollable scrollbars → Horizontal unscrollable scrollbar when content would overflow vertically without vertical scrollbar but fits with it
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INACTIVE
This is not a bug not present in a supported release of Firefox (i.e. it's present), so I'm reopening it.
Status: RESOLVED → REOPENED
Resolution: INACTIVE → ---
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: