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

Support the repeat(auto, ....) feature once the spec is sane about it #14

Open
FremyCompany opened this issue Mar 3, 2015 · 6 comments
Assignees

Comments

@FremyCompany
Copy link
Owner

Not sure whether it means I've to push for a spec change even more... or if I should just wait for @tabatkins and @fantasai to work on it on their own, and do something else of my free time than discuss about css-grid ^_^

Anyway, see #13 for more details on the background of this issue.

If you want to get this issue fixed for whatever reason, please comment here. I'll use the comments to prioritize my future work.

@FremyCompany
Copy link
Owner Author

It was resolved by the css working group to add an auto-fit behavior to the "repeat(auto)" feature. The feature has also been clarified regarding what should or should not be possible. Implementation work could technically start on this now (translation: when I've some free time to work on this).

Thanks @tabatkins and @fantasai for thinking this through and making the formal proposal, btw!

@woky
Copy link

woky commented Oct 8, 2015

Hello.

If you want to get this issue fixed for whatever reason, please comment here. I'll use the comments to prioritize my future work.

I've just hoped to use auto-fill (or auto-fit) in Chrome with Experimental Web features flag enabled but unfortunately it's not yet supported there. I guess I'll try the <table> in the meantime. My use-case is kind of a button grid that uses full width and height of the viewport.

Thank you.

@FremyCompany
Copy link
Owner Author

Could you share a screenshot once you're done? Just trying to assess how people use it in practice.

@woky
Copy link

woky commented Oct 8, 2015

Hi.

Basically I wanted a dynamic button grid that will fit the viewport. I managed to something similar with flex:

http://sprunge.us/ZfNb

I wanted to try the grid layout with repeat(auto-fill, ...) feature because I want the final layout to look like grid even if contained elements have different intrinsic dimensions, which I cannot do with the flex layout:

That is, in the last example I wanted the C to start a new row and B having same dimension as Abcdef. Anyway, I'm satisfied with this.

@yisibl
Copy link

yisibl commented Dec 10, 2015

@yisibl
Copy link

yisibl commented Jan 8, 2016

Firefox 46 support. 👻

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