Re: [csswg-drafts] [css-align-3] Consider making vertical centering (#6143)

While implementations have not yet caught up with the spec, it is defined that `align-content: center` should work on block containers, vertically centering their contents: <https://drafts.csswg.org/css-align/#distribution-block>

(We're hoping that this is still possible, and we don't have a bunch of existing web content accidentally relying on the property doing nothing for blocks.)

However, `align-self: center` is not possible in block containers, for the same reason Flexbox doesn't allow `justify-self` to work - there are multiple elements in the axis, and it's not clear how to reconcile each one asking for a particular alignment. `*-content` works because it aligns all the children as a group.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6143#issuecomment-807275319 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 25 March 2021 18:50:13 UTC