Re: [csswg-drafts] [css-display-3] Specify what edge forms the containing block for relative, static and sticky positioned boxes (#11196)

>Well that's false, grid items can be relatively or stickily positioned. 

Great, good know!

> I don't understand why you think it needs clarification.

Because the containing block of a *positioned box* is not necessarily its immediate containing box. You quoted: 'A grid item is sized within the containing block defined by its grid area.' Setting aside the question of whether sizing equals positioning, and assuming a grid item has a default ```position: static```, how do I know the containing block for the grid item doesn’t change when I apply ```position: relative``` or ```position: sticky```? In flow layout, the spec states that for a relatively positioned box, the containing block is the *first positioned ancestor*, which doesn’t necessarily point to any specific containing block within the formatting context.

-- 
GitHub Notification of comment by gitspeaks
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11196#issuecomment-2474507348 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 13 November 2024 19:13:18 UTC