Skip to content

[css-multicol-1] Margin collapse of first-child element is unintuitive #6170

@alystair

Description

@alystair

Hi gang, in my 17+ years of using CSS I never needed to research 'margin collapse', today was different.

I came across an annoyance with the current implementation of the column spec. This may be related to #2203 however the supplied demonstrations were confusing - so I created an intuitive demonstration of the issue here:

https://codepen.io/alystair/pen/poRRpXZ

Ideally, there shouldn't be a difference in the margin (or collapse of margin) of the first-child element when a multi-column layout is applied.

After reviewing the spec (mostly searching for instances of 'collapse' and 'first child') the only relevant content I found was Example 9.

What are the next steps?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions