Closed Bug 1644370 Opened 4 years ago Closed 4 years ago

CSS grid with combination of CSS position sticky at the bottom and overflow auto hides last element

Categories

(Core :: Layout: Grid, defect, P3)

76 Branch
Desktop
All
defect

Tracking

()

RESOLVED DUPLICATE of bug 1377072

People

(Reporter: u664632, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: parity-chrome, parity-edge)

Attachments

(1 file)

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

Steps to reproduce:

CSS:

.container {
height: 300px;
display: grid;
grid-template-columns: 2fr 1fr;
}

.side {
background-color: grey;
}

.table {
display: grid;
overflow: auto;
}

.row {
display: grid;
}

.header {
background-color: lightgrey;
position: sticky;
top: 0;
}

.footer {
background-color: lightgrey;
position: sticky;
bottom: 0;
}

HTML:

<div class="container">
<div class="table">
<div class="header">Characters</div>
<div class="row">A</div>
<div class="row">B</div>
<div class="row">C</div>
<div class="row">D</div>
<div class="row">E</div>
<div class="row">F</div>
<div class="row">G</div>
<div class="row">H</div>
<div class="row">I</div>
<div class="row">J</div>
<div class="row">K</div>
<div class="row">L</div>
<div class="row">M</div>
<div class="row">N</div>
<div class="row">O</div>
<div class="row">P</div>
<div class="row">Q</div>
<div class="row">R</div>
<div class="row">S</div>
<div class="row">T</div>
<div class="row">U</div>
<div class="row">V</div>
<div class="row">W</div>
<div class="row">X</div>
<div class="row">Y</div>
<div class="row">Z</div>
<div class="footer">Total 26</div>
</div>
<div class="side">Side</div>
</div>

https://jsfiddle.net/uL4og89s/7/

Actual results:

As you might see, when you scroll down, the last row element with character "Z" is not displayed. In fact it is hidden resp. overlapped by the footer element.

Expected results:

When scrolling down, I see the last row element with character "Z". The chromium browser (v. 83) does it right in my eyes.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Layout: Grid
Product: Firefox → Core

I can reproduce the issue on Nightly79.0a1 Windows10.

OS: Unspecified → All
Hardware: Unspecified → Desktop
Blocks: css-grid

The severity field is not set for this bug.
:svoisen, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(svoisen)

Daniel: Do you happen to know what the correct behavior should be? Seems like we should be leaving overscroll room to accommodate the sticky footer like Blink/Webkit, but not sure.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(svoisen) → needinfo?(dholbert)
Priority: -- → P3

Yeah, I think our behavior here is wrong. This looks like basically the same issue as bug 1585254 (and it affects both flex and grid, and both "end" scroll-sides).

--> marking as a duplicate

Status: NEW → RESOLVED
Closed: 4 years ago
Flags: needinfo?(dholbert)
Resolution: --- → DUPLICATE

Adjust the duplicate to bug 1377072 that actually fixed this bug.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: