Closed Bug 1987394 Opened 11 months ago Closed 11 months ago

css position sticky inside subgrid is using parent elements boundaries and not those of subgrid

Categories

(Core :: Layout: Grid, defect)

Firefox 142
defect

Tracking

()

RESOLVED DUPLICATE of bug 1958206

People

(Reporter: mail, Unassigned)

Details

Steps to reproduce:

multi-column layout with nested grids (subgrid) inside the columns
elements inside the subgrid have position sticky applied and should be sticky inside the boundaries of the nested subgrid
codepen example: https://codepen.io/jankohlbach/pen/dPYeYLq

Actual results:

the top right element is sticky inside the whole column of the outer grid, while it should respect the boundaries of the row it is inside of

Expected results:

the top right element should be sticky only inside the first row (like it's happening in chrome and safari, it's easier to see there how it should look like) and not until the end (inside the whole column spanning multiple rows of the outer grid)

that's my first bug report here, please excuse potential errors I made while doing so

Component: Untriaged → CSS Parsing and Computation
Product: Firefox → Core

Thanks for reporting this bug with a testcase. I believe this is the same as bug 1958206.

Status: UNCONFIRMED → RESOLVED
Closed: 11 months ago
Component: CSS Parsing and Computation → Layout: Grid
Duplicate of bug: 1958206
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.