#1035: CSS Gap Decorations

Visit on Github.

Opened Jan 7, 2025

こんにちは TAG-さん!

I'm requesting a TAG review of CSS Gap Decorations.

CSS multi-column containers allow for rules to be drawn between columns. Applying similar styling to other container layouts such as grid and flex has been widely sought after, as seen in the discussion for CSS Working Group issue #2748 and in several StackOverflow questions ( [1] [2] [3] [4] ). Currently, developers seeking to draw such decorations must resort to non-ergonomic workarounds such as these examples:

This proposal seeks to:

  • Extend CSS column rule properties to apply to container layout types beyond multi-column.
  • Introduce row-direction gap decorations on CSS container layouts.
  • Allow gap decorations to vary over a given container to handle cases such as alternating row separators.

Further details:

  • I have reviewed the TAG's Web Platform Design Principles
  • Relevant time constraints or deadlines: Prototyping is in progress in Chromium, and we're hoping to start origin trials around June of this year.
  • The group where the work on this specification is currently being done: CSSWG
  • The group where standardization of this work is intended to be done (if different from the current group): CSSWG
  • Major unresolved issues with or opposition to this specification: There are a few design issues left to tackle in the spec but nothing I would consider major.
  • This work is being funded by: Microsoft

You should also know that... your input is greatly appreciated, thank you in advance!

Discussions