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 - layout is messed up #7866

Closed
samdbeckham opened this issue Jun 29, 2017 · 3 comments
Closed

CSS Grid - layout is messed up #7866

samdbeckham opened this issue Jun 29, 2017 · 3 comments

Comments

@samdbeckham
Copy link

URL: https://codepen.io/samdbeckham/pen/LLevOP?editors=0100
Browser / Version: Chrome 59.0.3071
Operating System: Mac OS X 10.11.6
Problem type: Layout is messed up

Steps to Reproduce

  1. Navigate to: https://codepen.io/samdbeckham/pen/LLevOP?editors=0100
  2. Have a read, I've isolated and outlined the issue.
  3. Play about with the CSS in the editor on the right

Expected Behavior:
The bottom example should behave like the top example (in regards to the <pre> block)

Actual Behavior:
It breaks out of it's container and messes up the grid.

This seems to be the same in Safari and Firefox too.

From webcompat.com with ❤️

@samdbeckham samdbeckham changed the title codepen.io - layout is messed up CSS Grid - layout is messed up Jun 29, 2017
@karlcow
Copy link
Member

karlcow commented Jul 5, 2017

hey @samdbeckham thanks for the report.

I have the same behavior in all 3 browsers.
I wonder what @jensimmons is thinking about it.

I wonder if it's an issue worth reporting here.
https://github.com/w3c/csswg-drafts/labels/css-grid-1

@samdbeckham
Copy link
Author

I hadn't thought about it reporting it there. I've filed an issue on the csswg-draft repo and linked back to this issue. Hopefully someone can pick it up there.

@samdbeckham
Copy link
Author

Apparently this is expected behaviour with the fr measurement. In order to make it behave as I expected, you need to specify a width of minmax(0%, 1fr) as opposed to just having 1fr.

There's more info in this comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants