You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the above test case none of Safari, Chrome, or Firefox provide a horizontal scrollbar on the viewport. As far as I can tell, according to https://www.w3.org/TR/css-overflow-3/#scrollable, the margin of the flex item should contribute to the scrollable overflow and as a result create a horizontal scrollbar on the viewport. Setting overflow: scroll on the flexbox creates a scrollbar, which seems to be in line with the spec, so I feel like it should also generate on on the viewport for the overflow: visible case.
Is there some spec language here that should be changed or do all 3 implementations mentioned above have a bug that should be resolved?
@bfgeek So if I understand correctly, what you're suggesting is that
for flex container scrollers, scrollable area will include the margin boxes of all items (effectively)
for grid container scrollers, scrollable area will include the grid and the border boxes of all items; margins that overflow the grid itself will not be counted
for block container scrollers, scrollable area will include
in the block axis, the in-flow children and their margins, plus any floats participating in this formatting context plus their margins, plus the border box bounds and overflow (recursively) of descendants (but not their margins)
I believe this discussion would also be valid for grid items, but I'll just focus on flex here.
In the above test case none of Safari, Chrome, or Firefox provide a horizontal scrollbar on the viewport. As far as I can tell, according to https://www.w3.org/TR/css-overflow-3/#scrollable, the margin of the flex item should contribute to the scrollable overflow and as a result create a horizontal scrollbar on the viewport. Setting
overflow: scroll
on the flexbox creates a scrollbar, which seems to be in line with the spec, so I feel like it should also generate on on the viewport for theoverflow: visible
case.Is there some spec language here that should be changed or do all 3 implementations mentioned above have a bug that should be resolved?
Depending on the resolution the following WPT test may need to change as it does not seem to expect a scrollbar: http://wpt.live/css/css-flexbox/flexbox_stf-table-singleline-2.html
The text was updated successfully, but these errors were encountered: