Re: [csswg-drafts] [css-align] `justify-items` and anonymous block boxes (#11461)

I'm confused. You wrote:

> The 2nd option avoids establishing an inline formatting context on block containers with `justify-items` (the inline formatting context will instead be established by the anonymous block). But it doesn't force a new block formatting context - the parent BFC can be continued.

In the last two examples, the parent `<div>` is a block container. If `justify-items` avoids establishing an inline formatting context, then what formatting context does the anonymous block that wraps the child `<div>` elements exist in?  

Specifically, how can the anonymous block both establish an inline formatting context for the child `<div>` elements and at the same time continue the parent block formatting context  which is not an inline formatting context?

It seems that by wrapping the child `<div>` elements in an anonymous block box, you're implicitly changing the initial formatting context to a block. But if that anonymous block is continuing the parent BFC, then it doesn't establish an inline formatting context for the children and those would need to be wrapped in anonymous blocks and are to be laid out vertically.


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


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

Received on Wednesday, 30 April 2025 21:28:43 UTC