Closed Bug 1619042 Opened 5 years ago Closed 5 years ago

Flex Direction and Y Scrolling

Categories

(Core :: Layout: Flexbox, defect)

72 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1042151

People

(Reporter: socialentry, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36

Steps to reproduce:

Example:
https://jsfiddle.net/eimmot/vp9earth/19/

Click Add Item about a dozen times, the Y scrollbar does not show.

Works on Chrome. Firefox will not display the Y scrollbar, in fact it displays the X scrollbar instead.

Actual results:

Y scrollbar is disabled.

Expected results:

Y scrollbar should appear.

Hi,
I was able to reproduce this issue on all Firefox versions(73, 74, 75) on my PC(Win 10).
Thanks for your report!

Component: Untriaged → Layout: Scrolling and Overflow
Product: Firefox → Core
Status: UNCONFIRMED → NEW
Ever confirmed: true

Well the horizontal scrollbar thing is expected (it also happens on chrome when you add more content to each <p>), but yeah this looks like a flex sizing issue... off-hand I'd expect the same behavior as the test-case with flex-direction: column.

Component: Layout: Scrolling and Overflow → Layout: Flexbox

(In reply to socialentry from comment #0)

Click Add Item about a dozen times, the Y scrollbar does not show.

Yup, this is bug 1042151. flex-direction: column-reverse makes the overflowing content overflow off of the top (the writing-mode's "Start" side) which we don't treat as a direction where scrollable overflow can happen, really (for now), and bug 1042151 is filed on flipping this for reverse-oriented flex containers.

Firefox will not display the Y scrollbar, in fact it displays the X scrollbar instead.

To be clear, it's also totally reasonable that the horizontal scrollbar appears here.

The element implicitly ends up with overflow-x: auto (due to the default value visible computing to auto per https://www.w3.org/TR/css-overflow-3/#overflow-properties , since the other axis has "neither visible nor clip" (specifically, "scroll").

And there's some wide text, which is wide enough to overflow off the right side (the "end" side for the writing-mode), which makes overflow:auto produce a scrollbar.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.