Unable to scroll the content in Firefox for this testcase, but can in Chrome and Safari
Categories
(Core :: Layout: Tables, defect, P2)
Tracking
()
People
(Reporter: twisniewski, Unassigned)
References
(Blocks 1 open bug, )
Details
(Keywords: webcompat:platform-bug)
Attachments
(3 files)
In the attached test-case, Firefox locks the scroll-area unless I drop the display:inline-table
or change position:fixed
to position:absolute
.
This is breaking users' ability to scroll the filter menu's contents on www.urvaerket.dk, as reported on webcompat.com.
In addition, Firefox does not leave a 120px-height gap at the bottom of the screen, though I'm not sure if that's related.
Updated•2 years ago
|
Comment 1•1 years ago
|
||
(In reply to Thomas Wisniewski [:twisniewski] from comment #0)
Created attachment 9339177 [details]
testcase.htmlIn the attached test-case, Firefox locks the scroll-area unless I drop the
display:inline-table
or changeposition:fixed
toposition:absolute
.
In the case of position:absolute
the layout result is still wrong. The scroll frame you saw is the root scroll container, not the inner one.
This is breaking users' ability to scroll the filter menu's contents on www.urvaerket.dk, as reported on webcompat.com.
In addition, Firefox does not leave a 120px-height gap at the bottom of the screen, though I'm not sure if that's related.
I believe that's the root cause of this bug. The inner scroll container (filter .filter-content
) height is too large, it's 48000px on my environment.
Moving into Layout:Tables
.
Comment 2•1 years ago
|
||
(In reply to Hiroyuki Ikezoe (:hiro) from comment #1)
I believe that's the root cause of this bug. The inner scroll container (
filter .filter-content
) height is too large, it's 48000px on my environment.
Indeed. That element has a percent height, and it looks like we're declining to resolve that percent height (against the height of the table).
I've got a further-reduced testcase that demonstrates this a bit better; posting shortly.
Comment 3•1 years ago
|
||
Here's a reduced testcase. The orange-bordered area has height:50%
, which does indeed make it fill half of the table's height in Chrome, but doesn't resolve (and just falls back to content-height) in Firefox.
Comment 4•1 years ago
|
||
Here's a testcase using an actual table element (with the various table-parts explicitly filled in as well).
I've added a teal border around the table-cell. This shows that we do size the table-cell to fill the table, but we apparently don't treat that as a definite height for resolving percentages against.
Updated•6 months ago
|
Description
•