Skip to content

[css-box-model] Definition for collapsed margin has a little problem #6720

Description

@LasyIsLazy

The CSS2.2 definition from here:

In CSS, the adjoining margins of two or more boxes (which might or might not be siblings) can combine to form a single margin. Margins that combine this way are said to collapse, and the resulting combined margin is called a collapsed margin.

Only two or more boxes can result to collapsed margin, but in fact, one box can also result to collapsed margin.

See here:

top and bottom margins of a box that does not establish a new block formatting context and that has zero computed 'min-height', zero or 'auto' computed 'height', and no in-flow children

I wonder if there is a problem in the description of 'two or more boxes'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions