Re: [csswg-drafts] Definition of "Block-level box" in CSS2 Specification (#11126)

> a block formatting context (BFC) restricts its content to block-level elements

Well, the current spec allows for a BFC to be established simultaneously with an inline FC, so there is no such restriction.

Though in the past I have argued that inline FCs should only be established by anonymous block containers that are generated around sequences of inline-level contents (so an anonymous block box would still need to be generated even for non-anonymous block containers that only have inline-level contents). This would prevent the simultaneous FC situation, and would imply that a BFC can only have block-level contents (but this still wouldn't explain the blockification of the root).

> it doesn’t really clarify what effect a BFC has on inline elements when they’re mixed in with block-level siblings

I think it's clear from the spec that they are placed inside anonymous block boxes as you say, and then these establish an inline formatting context.
A BFC doesn't blockify its contents in general.

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


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

Received on Monday, 11 November 2024 12:51:45 UTC