Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / CSS

column-rule-inset-cap-end — offset a rule’s end cap

The column-rule-inset-cap-end property offsets end caps of column gap decorations. The example requires local rendering verification.

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

Syntax

column-rule-inset-cap-end: <length-percentage> | overlap-join;

column-rule-inset-cap-end targets cap endpoints: at container edges or junctions touched by no other painted segment. Junction endpoints instead use column-rule-inset-junction-end.

Positive values shorten the rule from its end; negative values extend it. Percentages use the crossing gap width, which is zero away from junctions. overlap-join acts as 0 here. The initial value is 0; the property is not inherited.

This definition comes from the CSS Gaps draft. Do not treat the Chromium 152 scope gate as proof of support. Run the example locally and check painting, not merely syntax acceptance.

Examples

<!doctype html>
<meta charset="utf-8">
<title>column-rule-inset-cap-end</title>
<style>
  .grid {
    display: grid;
    grid-template-columns: 100px 100px;
    grid-template-rows: 100px;
    gap: 20px;
    width: 220px;
    writing-mode: horizontal-tb;
    direction: ltr;
    column-rule: 4px solid blue;
    column-rule-inset-cap-end: 20px;
  }
  .grid > div { background: #eee; }
</style>
<div class="grid"><div>A</div><div>B</div></div>

Result

With rendering support: two 100px × 100px gray cells separated by a 20px gap. A 4px blue rule is centered in the gap, starting at the top and ending 20px above the bottom; its length is 80px.

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