padding-bottom/right(block-end/inline-end) is ignored with overflow:auto/scroll because it extends in from the border-box rather than out from the scrollable area
Categories
(Core :: Layout: Block and Inline, defect, P2)
Tracking
()
| Webcompat Priority | P1 |
People
(Reporter: luigipinca, Unassigned)
References
Details
(Keywords: regression, Whiteboard: [layout:backlog])
Attachments
(4 files)
Comment 1•14 years ago
|
||
Updated•14 years ago
|
Comment 2•14 years ago
|
||
Comment 4•14 years ago
|
||
Comment 5•14 years ago
|
||
Comment 6•14 years ago
|
||
Comment 9•13 years ago
|
||
Comment 12•13 years ago
|
||
Comment 13•12 years ago
|
||
Comment 14•12 years ago
|
||
Comment 15•12 years ago
|
||
Comment 16•12 years ago
|
||
Comment 17•12 years ago
|
||
Comment 18•12 years ago
|
||
Comment 19•12 years ago
|
||
Comment 20•12 years ago
|
||
Comment 21•11 years ago
|
||
Comment 25•10 years ago
|
||
Comment 26•10 years ago
|
||
Comment 27•10 years ago
|
||
Comment 28•10 years ago
|
||
Comment 29•9 years ago
|
||
Comment 30•9 years ago
|
||
Comment 32•8 years ago
|
||
Comment 39•7 years ago
|
||
Comment 40•7 years ago
|
||
Updated•7 years ago
|
Comment 46•7 years ago
|
||
I found a workaround with pseudo, this can be usable until it will be reopened and fixed
Comment 47•7 years ago
|
||
It's also possible to use something like height:calc(100% - 10px) to add bottom-padding, if the containing block is also position:relative or position:absolute.
Comment 48•7 years ago
|
||
This is also biting CNN's site, as per https://webcompat.com/issues/25092.
Comment 49•7 years ago
|
||
FWIW, I filed bug 1527949 as a placeholder to cover the eventual implementation of the eventual spec-text. (This behavior is still under/un-specified at the moment.)
Comment 55•6 years ago
•
|
||
I'm the author of the last yet another duplicate bug 1620978
Everything's already been said about padding areas etc, but in Firefox 73 I'm also seeing actual content cut off with zero everything outside content-box.
Screenshot in the attachment clearly shows the container doesn't have any EDIT bottom properties outside content-box, yet the bottom right widget text is cut off. Chrome, again, displays this correctly.
Is this overflow handling situation borked in more than one way? Is there another bug to follow for content cut-off?
EDIT this has an effect of killing a whole bunch of workaround attempts with ::after etc, because now context box itself is displayed at unequal height cross-browser.
EDIT update: I've managed to overcome my sidebar issues by re-using <aside> element's <slot> child as the scroll container, effectively using it as a "free" wrapper (it's there anyway), instead of previously scrolling <aside> itself. This has magically solved all overflow issues.
Updated•6 years ago
|
Comment 58•6 years ago
|
||
Sean, I think we should considering re-opening this bug (and matching Blink's behavior) for compat reasons. Thoughts?
Comment 59•6 years ago
|
||
I really hope that this issue will be solved.
It is my biggest WTF in CSS.
As much as I love Firefox, I ignore the behavior of Firefox and do not use any additional elements or CSS hacks to get a padding-bottom.
Comment 60•6 years ago
|
||
I also have this issue (https://bugzilla.mozilla.org/show_bug.cgi?id=1630496) and would be appreciative if this report was reopened.
Comment 61•6 years ago
|
||
Please consider fixing it. I stumble across the issue on nearly every project I am working on.
Comment 62•6 years ago
•
|
||
(In reply to Mike Taylor [:miketaylr] from comment #58)
Sean, I think we should considering re-opening this bug (and matching Blink's behavior) for compat reasons. Thoughts?
Matching Blink behavior for now makes sense. Currently, Firefox users seem to be getting a degraded experience on a surface potentially bigger than it appears. Many developers probably don't even bother testing much on FF due to market share dynamics (extrapolating from people I personally know), and others may not be able to figure out what the problem is and just leave it. It took me nearly a year and random events from first seeing the problem effect and finally ending up here at the root cause.
Updated•6 years ago
|
Comment 63•6 years ago
|
||
Reopening this for further team discussion.
Comment 64•6 years ago
|
||
I also have this issue very often. Thanks for reopening this thicket!
Comment 65•6 years ago
|
||
Thanks for re-opening this bug. I'm experiencing this as well as per FF 75 in Material-UI Dialog boxes.
Comment 66•6 years ago
|
||
Fwiw, relevant spec is here: https://drafts.csswg.org/css-overflow-3/#scrollable
To the extent that it's Web-compatible, I think we should be including padding/margins in the scrollable overflow area, since that is what authors expect. CSSWG has already resolved to do this for flex/grid (where we're less concerned with Web-compat), see https://github.com/w3c/csswg-drafts/issues/3653 and https://github.com/w3c/csswg-drafts/issues/3665
Since this is a compat bug wrt Chrome, it seems fixable: compat appears to be in the direction we want to go in. So long as that's actually true, we should fix it, and get the specs and Gecko to match Chrome.
(Also worth noting that the css-align-3 spec currently requires including the padding for all non-normal alignments; since we had to mess with this behavior to get alignment in scroll containers to work anyway. See https://www.w3.org/TR/css-align-3/#overflow-scroll-position Since 'normal' behavior is generally equivalent to 'start' for block containers, has the side-effect of giving us an opt-in switch for situations where Web-compat won't allow us to change.)
Comment 67•6 years ago
|
||
Part of the problem with Chrome's behavior is that it's inconsistent. It includes the inline-end but not the block-end, which is a bit odd.
Comment 68•6 years ago
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #67)
Part of the problem with Chrome's behavior is that it's inconsistent. It includes the inline-end but not the block-end, which is a bit odd.
Err, exactly the other way around, sorry :)
Comment 69•6 years ago
|
||
But I agree implementing that resolution for flex / grid would be a good first step towards fixing this more generally.
Comment 70•6 years ago
|
||
+1 thanks for re-opening. I hope this gets fixed soon <3
Updated•5 years ago
|
Updated•5 years ago
|
| Comment hidden (metoo) |
Updated•5 years ago
|
Comment 72•5 years ago
|
||
More discussions around this. The CSS WG is trying to decide if the resolution should be on both axis.
https://github.com/w3c/csswg-drafts/issues/129#issuecomment-697691447
We (Blink) are prepared to try and incrementally move to the "child-margin + padding" case for both axis, however stop when we find real world compat concerns.
Firefox is the outlier now on this. WebKit and Blink have the same behavior.
Sean, Given the accumulation of duplicates and SeeAlso let's move this up for webcompat.
Comment 73•5 years ago
|
||
Agreed, and we've talked about this bug a few times within the team. Bumping in our backlog priority.
Updated•5 years ago
|
Comment 75•5 years ago
|
||
I'd also like to point out that this issue appeared in https://bugzilla.mozilla.org/show_bug.cgi?id=1099204, specifically my comment https://bugzilla.mozilla.org/show_bug.cgi?id=1099204#c22
After great input from Emilio, we got the textarea working pretty much as expected, except the padding on the bottom: https://bug1099204.bmoattachments.org/attachment.cgi?id=9200379
(Note: I increased Github's textarea padding to 20px to showcase it better)
Updated•5 years ago
|
Comment 77•5 years ago
|
||
Jonathan Kew: I'm showing this Bug tied to Epic https://mozilla-hub.atlassian.net/browse/FFXP-360. Are we stalled on this? Just seeing it bumped from P3->P2->P1 just raises eyebrows. Thanks.
Comment 78•5 years ago
|
||
It looks like bug 1527949 (landed in FF 89) addressed this for the block-axis case, which was probably the main source of compat pain (at the time Daniel filed it, apparently Blink also implemented this only for the block axis). The original testcases attached here render OK now, afaics.
So what remains is the inline-axis case (bug 1700858), which I think is less critical (but we should still fix, of course). Ting-Yu has work in progress there, but my understanding is that we're waiting for CSS WG resolution of questions raised in https://github.com/w3c/csswg-drafts/issues/129.
Given that bug 1527949 is fixed, though, I'd say the webcompat priority here could be dialled back.
Comment 79•5 years ago
|
||
Agree with Jonathan's comment 78. All the major bugs blocking this has been fixed, let's close this, and keep tracking the remaining inline-end padding issue in bug 1700858.
Updated•4 years ago
|
Description
•