Skip to content
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

[css-grid] Sizing Grid Containers fails on floats #1734

Closed
fantasai opened this issue Aug 17, 2017 · 0 comments
Closed

[css-grid] Sizing Grid Containers fails on floats #1734

fantasai opened this issue Aug 17, 2017 · 0 comments
Labels
Closed Accepted as Obvious Bugfix Commenter Satisfied Commenter has indicated satisfaction with the resolution / edits. css-grid-1 Tracked in DoC

Comments

@fantasai
Copy link
Collaborator

The spec says

A grid container is sized using the rules of the formatting context in which it participates:

  • As a block-level box in a block formatting context, it is sized like a block box that establishes a formatting context, with an auto inline size calculated as for in-flow block boxes.

This is fine for in-flow block boxes, but for floated boxes (or abspos) the grid container should shrinkwrap. I think perhaps it meant "non-replaced block boxes" here.

@fantasai fantasai added the Commenter Satisfied Commenter has indicated satisfaction with the resolution / edits. label Sep 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed Accepted as Obvious Bugfix Commenter Satisfied Commenter has indicated satisfaction with the resolution / edits. css-grid-1 Tracked in DoC
Projects
None yet
Development

No branches or pull requests

1 participant