Chrome Gap Decorations | CSS layout separators arrive in Chromium

Chrome for Developers has announced that CSS gap decorations are now available in Chromium, giving designers a cleaner way to style the spaces between layout items. Published on May 15, 2026, the update brings visual rules to grid, flexbox, and multi-column layouts, reducing the need for borders, pseudo-elements, extra markup, or background tricks.


Chrome CSS gap decorations for grid flexbox and layout separators

{getToc} $title={Table of Contents}

Chrome makes layout separators cleaner with native CSS gap decorations


Gap decorations solve a very practical layout problem. Web designers often need separators between cards, panels, columns, or rows, but traditional solutions usually depend on borders, pseudo-elements, extra wrappers, or carefully calculated background patterns.


For template creators, this is an exciting improvement because separators are everywhere: dashboards, pricing tables, article grids, settings panels, magazine layouts, calendars, menus, and editorial sections. When the browser can decorate gaps directly, the layout stays cleaner and the visual system becomes easier to maintain.



How CSS gap decorations work


The update extends rule-style decoration to more layout modes. Grid and flexbox containers can now use column-rule, while the new row-rule property handles horizontal gaps. The rule shorthand can also set both directions at once.


Chrome explains that these decorations are purely visual and do not affect the existing layout. That is important for web design because separators can be added without changing the structure of the HTML, which helps protect accessibility, responsiveness, and long-term maintainability.


New layout options for web templates


Gap decorations include several controls that make them useful for real interface design. Designers can vary rule width, style, and color across gaps, use repeat() syntax, control how decorations break at intersections, and decide how far rules are inset from the edges of the gap.


The feature also includes visibility controls such as rule-visibility-items, which can show rules only between adjacent items or across every gap. That is useful when working with responsive grids where empty spaces, wrapping items, or dynamic content can make old separator techniques fragile.


Rule width, color, and insets are animatable too. For designers, that opens the door to subtle hover states, dashboard accents, responsive section dividers, and interactive layout treatments without adding extra DOM nodes or custom JavaScript just to style separators.


Why it matters for modern CSS workflows


Chrome says gap decorations are available in Chrome and Edge starting with version 149. If the decorations are purely decorative, they can work well as progressive enhancement: unsupported browsers simply render the layout gaps without the visual rules.


For animetemplates, the practical takeaway is that CSS is becoming stronger for layout polish. Native gap decorations can make templates cleaner, reduce markup workarounds, improve accessibility, and give designers more expressive control over grids and flex layouts while keeping the structure of the page simple.


Daisuki's Take: What This Means for Web Designers


We see CSS gap decorations as a practical improvement for designers who care about clean layout systems. The real value is not just adding decorative lines; it is being able to separate content visually without changing the HTML structure, adding extra wrappers, or relying on fragile pseudo-element tricks.


For web designers and creative teams, this can make grids, card layouts, dashboards, pricing tables, editorial sections, and template blocks easier to maintain. A design system can define gap rules once and apply them consistently across responsive layouts, which helps keep visual rhythm and spacing more predictable.


The limitation is browser support and design intent. We still need to test fallbacks, confirm that the separators remain purely decorative, and make sure the layout stays readable without them. Human review remains important because a cleaner CSS feature does not automatically guarantee better hierarchy, accessibility, or visual balance.



Sources and Recommended Links