Skip to content

[css-gaps-1] Empty space in the stacking axis should not be part of a gap #14154

Description

@jav099

Context

Along the stacking axis, a grid lanes container can contain empty space that is
not an authored gutter.

Problem

Empty space in the stacking axis is very ambiguous, as it can be used for dense-packing
and alignment.

Proposal

  • A stacking-axis gap is exactly the authored gutter , the used
    row-gap / column-gap value carried by the owning item. Empty
    space beyond that gutter is not part of any gap and therefore has no gap
    decoration
    . Otherwise, there would be no way of aligning the decorations above a spanner, which an author might want with rule-break: none;
Image

A stacking-axis gap is only the authored gutter. The full-width spanners (4) and (5) each take one rule; the empty space left under the shorter items (2) and (3) is not a gap and takes no decoration.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions