Skip to content

[css-grid] Positioned items don't participate in the grid container baseline #639

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mrego opened this issue Oct 24, 2016 · 2 comments
Closed

Comments

@mrego
Copy link
Member

mrego commented Oct 24, 2016

The grid container baseline definition talks generally about "grid items".

IMHO, it would be nice to explicitly exclude absolutely-positioned grid items, as they don't participate on the layout of the grid as stated in 10.1:

does not contribute to the sizing of any grid tracks or affect the size/configuration of the grid in any way

@dholbert
Copy link
Member

dholbert commented Oct 26, 2016

FWIW, I believe this is already pretty unambiguous in the spec.

There is no such thing as an "absolutely positioned grid item", spec-wise. The term "grid item" is already defined as only including in-flow children. This is explicit in the section on grid items as well as the section on abspos children:

Loosely speaking, the grid items of a grid container are boxes representing its in-flow contents
https://drafts.csswg.org/css-grid/#grid-item
[...]
An absolutely-positioned child of a grid container is out-of-flow and not a grid item
https://drafts.csswg.org/css-grid/#static-position

@mrego
Copy link
Member Author

mrego commented Oct 26, 2016

Yeah I was missing the "each in-flow child of a grid container becomes a grid item" in the definition.
This is not needed indeed. Thanks!

@mrego mrego closed this as completed Oct 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants