Skip to content

[css-align][css-flexbox]Can align-content be used in a single-line of flex-containers? #1268

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
yisibl opened this issue Apr 21, 2017 · 4 comments
Labels
Closed Rejected as Invalid Commenter Satisfied Commenter has indicated satisfaction with the resolution / edits. css-align-3 Current Work css-flexbox-1 Current Work Tracked in DoC

Comments

@yisibl
Copy link
Contributor

yisibl commented Apr 21, 2017

<div class="test"><div>foo</div></div>
.test {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid black;
  width: 200px;
  height: 100px;
  align-content: center;
  justify-content: center;
  margin: 30px auto;
}

Chrome ignores the align-content property, Firefox, Edge, Safari will not.

Which does not seem to be explicitly defined in the specification.

Demo: http://jsbin.com/vuxorikewe/edit?html,css,output

image
image

@mrego mrego added css-align-3 Current Work css-flexbox-1 Current Work labels Apr 21, 2017
@mrego
Copy link
Member

mrego commented Apr 21, 2017

@yisibl
Copy link
Contributor Author

yisibl commented Apr 21, 2017

@mrego Thanks! ❤️

The new specification is more in line with the user's expectations, which is more consistent with css-grid.

@yisibl
Copy link
Contributor Author

yisibl commented Apr 21, 2017

Firefox 52 fixed in https://bugzilla.mozilla.org/show_bug.cgi?id=1090031

@mrego mrego closed this as completed Apr 21, 2017
@fantasai fantasai added the Commenter Satisfied Commenter has indicated satisfaction with the resolution / edits. label May 2, 2017
@fantasai fantasai added this to the Published css-flexbox-1 2017-10-19 milestone Mar 29, 2018
@yisibl
Copy link
Contributor Author

yisibl commented Dec 11, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed Rejected as Invalid Commenter Satisfied Commenter has indicated satisfaction with the resolution / edits. css-align-3 Current Work css-flexbox-1 Current Work Tracked in DoC
Projects
None yet
Development

No branches or pull requests

4 participants