Skip to content

[css-display-3] The definition of BFC does not include flex item #5143

Closed
@Mookiepiece

Description

@Mookiepiece

quoting something from #1471

it's not uncommon to call the flex container a "BFC" informally

I think Tab meant that a flex item does not necessarily establish a BFC, e.g. if it has display: flex, it establishes a FFC instead. But if it has display: block then it's "flow-layout stuff" and establishes a BFC.

if a flex container could establish a "BFC", why flex item cannot?

I suggest to correct the BFC definition

from

  • (very loosely) any block-level box that establishes a new formatting context (other than an inline formatting context)

to

  • (very loosely) any box that establishes a new formatting context (other than an inline formatting context)

(someone has added “flex item” without “flex container” to the BFC page on MDN for a long time. I am not sure how to correct that page, that's one reason I come here)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions