Open Bug 1838524 Opened 2 years ago Updated 22 days ago

Unable to scroll the content in Firefox for this testcase, but can in Chrome and Safari

Categories

(Core :: Layout: Tables, defect, P2)

defect

Tracking

()

People

(Reporter: twisniewski, Unassigned)

References

(Blocks 1 open bug, )

Details

(Keywords: webcompat:platform-bug)

Attachments

(3 files)

Attached file testcase.html

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.

Severity: -- → S3
Priority: -- → P2
Whiteboard: [apz-needsdiagnosis]

(In reply to Thomas Wisniewski [:twisniewski] from comment #0)

Created attachment 9339177 [details]
testcase.html

In the attached test-case, Firefox locks the scroll-area unless I drop the display:inline-table or change position:fixed to position: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.

Component: Layout: Scrolling and Overflow → Layout: Tables
Whiteboard: [apz-needsdiagnosis]

(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.

Attached file testcase 2

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.

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.

See Also: → 1853043
Blocks: 1890765
See Also: → 1461852
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: