You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the 1st case, there is no block-level child to align. In the 2nd case, "foo" gets wrapped inside an anonymous block, which is then aligned by justify-items: right.
But it seems potentially unexpected that appending a block affects the alignment of the inline contents.
Maybe anonymous blocks should get assigned justify-self: startjustify-self: stretch (or normal)?
The text was updated successfully, but these errors were encountered:
Maybe anonymous blocks should get assigned justify-self: start?
But how would you allow aligning 'anonymous blocks' to the end if that's the desired behavior?
If the goal is to align only the 'anonymous blocks' to the end, what other option would you have besides setting justify-items: right on the parent, keeping the current Blink behavior, and explicitly setting justify-self: left on each child div?
But how would you allow aligning 'anonymous blocks' to the end if that's the desired behavior?
There is of course a trade-off, we need to think which option will be less confusing.
But the authors could just wrap the inline contents with a <div> rather than relying on an anonymous block, then the element-generated block would obey the justify-items of the parent.
But the authors could just wrap the inline contents with a <div> rather than relying on an anonymous block, then the element-generated block would obey the justify-items of the parent.
That's beside the point since we're no longer dealing with anonymous block boxes in that case. I think keeping the justify-items behavior consistent for both anonymous and non-anonymous block boxes makes it simpler to reason about. That said, I recommend adding a note in the spec for justify-items as a helpful reminder of the existence of 'anonymous block boxes' and their conforming behavior, aligning with other block boxes.
In Blink it looks like this:
In the 1st case, there is no block-level child to align. In the 2nd case, "foo" gets wrapped inside an anonymous block, which is then aligned by
justify-items: right
.But it seems potentially unexpected that appending a block affects the alignment of the inline contents.
Maybe anonymous blocks should get assigned
justify-self: start
justify-self: stretch
(ornormal
)?The text was updated successfully, but these errors were encountered: