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)
Core
Layout
Tracking
()
REOPENED
| Tracking | Status | |
|---|---|---|
| firefox62 | --- | affected |
People
(Reporter: Oriol, Unassigned)
Details
Attachments
(1 file, 2 obsolete files)
|
880 bytes,
text/html
|
Details |
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.
| Reporter | ||
Comment 2•9 years ago
|
||
Still reproducible for me.
| Reporter | ||
Updated•9 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
| Reporter | ||
Comment 3•9 years ago
|
||
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
| Reporter | ||
Updated•9 years ago
|
Summary: Multiline flexbox produces unscrollable scrollbars → Horizontal unscrollable scrollbar when content would overflow vertically without vertical scrollbar but fits with it
Comment 4•8 years ago
|
||
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
| Reporter | ||
Comment 5•8 years ago
|
||
This is not a bug not present in a supported release of Firefox (i.e. it's present), so I'm reopening it.
Updated•4 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•