Skip to content

[css-sizing][css-multicol][css-grid-1] taking into account gaps/gutters in Intrinsic Sizes in Multi-column and Grid Layout #163

@frivoal

Description

@frivoal

https://drafts.csswg.org/css-sizing/#multicol-min-content says:

The min-content inline size of a multi-column element with a computed column-width of auto is the largest min-content inline-size contribution of its contents multiplied by its column-count (treating auto as 1).

Is that right? How about column-gap? Doesn't this make more sense?

The min-content inline size of a multi-column element with a computed column-width of auto is the largest min-content inline-size contribution of its contents multiplied by its column-count (treating auto as 1), plus the column-gap multiplied by column-count minus 1.

Similarly, I think

The min-content inline size of a multi-column element with a computed column-width not auto is the smaller of its column-width and the largest min-content inline-size contribution of its contents.

should be

The min-content inline size of a multi-column element with a computed column-width not auto is the smaller of its column-width and the largest min-content inline-size contribution of its contents, multiplied by by its column-count (treating auto as 1), plus the column-gap multiplied by column-count minus 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Commenter SatisfiedCommenter has indicated satisfaction with the resolution / edits.css-sizing-4

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions