Unnecessary scrollbar on new-tab page when browsing new-tab wallpapers
Categories
(Firefox :: New Tab Page, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox131 | --- | fixed |
People
(Reporter: dholbert, Assigned: dholbert)
References
(Depends on 1 open bug)
Details
Attachments
(2 files)
STR:
- (optional but helpful) Configure Firefox (or your OS) to get into "always show scrollbars" mode (i.e. turn off overlay scrollbars). On macOS and Windows 11, this is in your system settings; on Linux, you can toggle this in Firefox preferences with the "Always show scrollbars" checkbox.
- Open a new tab.
- Click the cog icon.
- Click "abstract" or "photographs".
ACTUAL RESULTS:
A new scrollbar appears that's nearly the height of the window. (This displays alongside the regular new-tab scrollbar, if you've got "always show scrollbars" enabled)
EXPECTED RESULTS:
No such scrollbar.
DIAGNOSIS:
Poking in devtools, I found the issue; we've got an element that's height: 100%
, which also has margin-top and margin-bottom (both set to 16px
), which makes it trivially overflow.
We should reduce the height to height: calc(100% - 32px)
so that it exactly fills the containing block (without the margins making it overshoot). (Eventually we can make it height:stretch
instead, but we don't have that syntax yet; that's bug 1789477.)
Assignee | ||
Comment 1•7 months ago
|
||
Assignee | ||
Comment 2•7 months ago
|
||
.wallpaper-list {
...
margin: 16px 0;
...
.wallpaper-list.category {
...
height: 100%;
Those decls are what give this element a margin-box height of 100%-plus-16px-plus-16px, which makes it overflow.
We should reduce the height to height: calc(100% - 32px)
Strictly speaking, the scrollbar goes away if I use calc(100% - 16px)
-- I suspect the bottom 16px doesn't matter here because it doesn't create scrollable overflow. But we should still probably subtract 32px for robustness; it's not great to be needlessly pushing a margin off the bottom of the scrollport.
Assignee | ||
Comment 3•7 months ago
|
||
Updated•7 months ago
|
Assignee | ||
Updated•7 months ago
|
Comment 5•6 months ago
|
||
bugherder |
Description
•