[csswg-drafts] [css-align] Which behavior for block's "justify-self: center"?

tabatkins has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-align] Which behavior for block's "justify-self: center"? ==
There are two possible behaviors for `justify-self:center` on blocks in the presence of a float:

1. Reduce the size of the alignment container by the size of the float's margin box, then center the block in the remaining space (this is the behavior of HTML's `align` attribute)
2. Center the block ignoring the float, then shift it out of the way of the float if necessary. (This is the behavior of centering a BFC with auto margins.)

@fantasai and I are leaning toward option 1, simply because we already have a way to do option 2 in CSS, and both behaviors are useful in different circumstances.  Also, since we're trying to explain the behavior of `align` using `justify-self`, the property should be able to duplicate this behavior.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1612 using your GitHub account

Received on Tuesday, 18 July 2017 17:23:13 UTC