Contact emails
Explainer
Specification
Summary
CSS Gap Decorations enables styling of gaps in container layouts like Grid and Flexbox, similar to ‘column-rule’ in multicol layout. This feature is highly requested by web authors who must use hacks to style the gaps in Grid and Flexbox layouts today.
Blink component
Search tags
TAG review
TAG review status
Issues addressed
Risks
Interoperability and Compatibility
Web developers: Positive.
WebView application risks
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
None
Goals for experimentation
We aim to gather feedback from web developers on the overall design and usability of the CSS Gap Decorations API. Specifically, we want to ensure that the current design meets the need to decorate gaps across various layout types. We're particularly interested
in:
-
How intuitive the API is to use in real-world scenarios.
-
Whether the current syntax and behavior align with developer expectations.
-
Use cases or layout patterns where the feature is especially helpful or lacking.
-
Suggestions for improvements or extensions to the API.
We encourage developers to share examples of how they’re using the feature and any challenges they encounter, especially in complex layouts.
Ongoing technical constraints
There are a few known limitations in the current implementation that we plan to actively work on in parallel with the developer trials:
-
Animation and Interpolation: Support for animation and interpolation of gap decoration properties is not yet implemented.
-
Fragmentation support: Gap decorations currently do not render correctly across fragmented containers (e.g., multi-column layouts or paged media).
-
Grid size limitations: The current implementation has practical limits on the size of grids that can be decorated. A refactor is planned to improve scalability and performance for much larger grids.
Debuggability
DevTools already provides a layout overlay for gaps in Grid and Flexboxes. Computed values for new properties introduced for gap decoration will be exposed.
Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, ChromeOS, Android, and Android WebView)?
Yes
Yes
Flag name on about://flags
None
Finch feature name
CSSGapDecoration
Requires code in //chrome?
False
Tracking bug
Estimated milestones
Link to entry on the Chrome Platform Status
Links to previous Intent discussions