- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 14 May 2025 17:02:39 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed ``[css-align] `justify-items` and anonymous block boxes``, and agreed to the following: * `RESOLVED: Anonymous block boxes always stretch (go with option 1)` <details><summary>The full IRC log of that discussion</summary> <oriol> https://github.com/w3c/csswg-drafts/issues/11461#issuecomment-2842434810<br> <emilio> oriol: since we resolve justify-self can force fit-content size, if you use justify-items on a block container, a block container with inline level contents, justify-items won't apply<br> <emilio> ... if you then add a block, you add an anonymous block level box and justify-self applies to it<br> <emilio> ... so it's very unexpected that adding a block-level sibling changes the alignment<br> <emilio> ... option 1 would be that anon block boxes would always stretch rather than using justify-items of the parent<br> <emilio> ... another option would be that justify-items other than initial you'd still wrap stuff<br> <emilio> ... IMO option 1 is the easiest to implement in servo, also avoids some questions about what to do with percentages and so on<br> <iank_> +1 Oriol - There is a whole can of worms involved w/ option (2)<br> <emilio> ... percentages in the block axis skips anon boxes, should we skip them in the inline axis if we consider the other option?<br> <emilio> ... miriam preferred option 2 since it's more useful for authors (no need to wrap in implicit elements)<br> <astearns> ack miriam<br> <iank_> q+<br> <astearns> ack fantasai<br> <emilio> miriam: oriol described what I think, alignment is one of the more common things to do and doing it easily makes sense<br> <fantasai> https://www.w3.org/TR/css-text-4/#text-group-align-property<br> <emilio> .. but either option feels better than the alternative<br> <emilio> fantasai: there's one property that allows you to wrap things, not sure it's implemented<br> <emilio> ... the behavior you want is not the behavior that would fall off from wrapping in anon boxes<br> <emilio> ... consider a paragraph with text, block level, then text<br> <emilio> ... if we wrap each in a box then they'd be independently aligned which I'm not sure is what you want<br> <astearns> ack iank_<br> <emilio> iank_: pretty against option 2<br> <emilio> ... quite a large can of worms<br> <emilio> ... probably big source of confusion for web devs too<br> <emilio> ... a little concerned about compat too<br> <emilio> ... so prefer option 1, authors ??? text-align<br> <emilio> astearns: we could resolve on updating the spec to option 1 with a note<br> <emilio> miriam: ok with that<br> <emilio> PROPOSED: Anonymous block boxes always stretch<br> <emilio> RESOLVED: Anonymous block boxes always stretch (go with option 1)<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11461#issuecomment-2880941020 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 14 May 2025 17:02:40 UTC