Skip to content

[CSS2] Current definition of margin collapsing isn't interoperable. #5571

@bfgeek

Description

@bfgeek

https://www.w3.org/TR/CSS2/box.html#collapsing-margins

This is somewhat a meta issue which was found while investigating behaviour for aspect-ratio. We (Blink) haven't had any reports of users hitting these inconsistencies between implementations so this is largely an "academic" issue and not immediately important.

While investigating I created this testcase:
https://www.software.hixie.ch/utilities/js/live-dom-viewer/?saved=8342

The inconsistencies are around collapsing through margins, and when things are considered adjoining. Some implementations will "double-count" a margin in certain cases (which seems bad).

This indicates that the current definition isn't sufficient (or consistent) for building an interoperable implementation.

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