Skip to content

[css-gaps-1] Gaps around the edges of a container #13087

@kbabbitt

Description

@kbabbitt

Originally posted by @yisibl in #12602

I actually have another case where I'm unsure if gap decorations can achieve this layout.

It will include the outermost border, but in reality, the gap does not exist at these positions. However, perhaps a virtual gap track could be extended?

Currently, I'm using grid gaps combined with outlines, but this approach isn't very elegant.

Once we have the ability to control gap decoration items in empty areas, the above use cases would become almost possible. The missing piece would be to have gap decorations around the edges of a container.

Proposal is to introduce column-edge-gap and row-edge-gap, with initial value of 0, which accept <length-percentage [0,∞]>. We don't need the normal keyword because we don't want to differentiate between multi-col and other containers; for back-compat all should have no gaps around the edges by default.

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