Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / CSS

column-rule-inset-cap — inset rule caps

A CSS shorthand controlling cap endpoint insets for column gap decorations. One value sets both ends; two values let you set the start and end independently.

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: <inset-value> <inset-value>?;
<inset-value> = <length-percentage> | overlap-join

column-rule-inset-cap sets column-rule-inset-cap-start and column-rule-inset-cap-end: one value applies to both; two mean start then end. Positive values shorten the decoration; negative values extend it. Both longhands initially have 0 and are not inherited.

A cap endpoint does not join another painted segment at a gap junction; it can also occur inside the container. Use column-rule-inset-junction for junction endpoints. Percentages refer to the crossing gap width and resolve to zero at container edges. Here, overlap-join behaves as 0.

This is a CSS Gaps editor’s-draft feature. The example requires local syntax and rendering verification; inclusion in the Chromium 152 scope gate does not establish support.

Examples

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

Result

Expected with rendering support: a blue vertical rule centered in the 20px gap, starting 10px below the grid's top and ending 20px above its bottom; rule length: 70px.

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