Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / CSS

column-rule-visibility-items — rule visibility beside empty areas

Controls painting of column-gap rule segments according to the presence of adjacent items, without changing layout.

Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required

Syntax

column-rule-visibility-items: all | around | between | normal;

column-rule-visibility-items filters column-gap decoration painting, not item visibility. Also set something like column-rule: 4px solid blue; this property alone creates neither a line nor layout space.

all paints every segment; around requires an item on at least one side; between requires both sides. The initial normal means all in Grid and grid lanes, but between in multicolumn layout.

The property is not inherited; animation is discrete. It applies to Grid, multicolumn layout, and grid lanes, not Flexbox. In grid lanes it affects only grid-axis decorations.

This is a draft specification, not a support guarantee. The Chromium 152 scope requires local example verification; accepting the syntax does not confirm correct rendering.

Examples

<!doctype html>
<meta charset="utf-8">
<title>column-rule-visibility-items</title>
<style>
  .grid {
    display: grid;
    grid-template: repeat(2, 60px) / repeat(2, 80px);
    gap: 16px;
    width: max-content;
    column-rule: 4px solid blue;
    column-rule-break: intersection;
    column-rule-visibility-items: between;
  }
  .grid > div { background: lightgray; }
</style>
<div class="grid">
  <div>A</div><div>B</div><div>C</div>
</div>

Result

Expected rendering with support: A and B occupy the first row; C occupies the lower-left cell. A blue column-rule segment appears between A and B, but not beside C.

The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.

Sources