CKTIS / CSS
column-rule-inset — offsetting column-rule endpoints
column-rule-inset controls the endpoints of decorative rules in column gaps. Positive values shorten the rule and negative values extend it, without changing item layout.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
column-rule-inset: <'column-rule-inset-cap'> [ / <'column-rule-inset-junction'> ]?;
/* cap-start cap-end? [ / junction-start junction-end? ]? */
/* Each value: <length-percentage> | overlap-join */column-rule-inset changes decoration geometry, not gap width or item positions. A visible rule also needs a style and width, for example column-rule: 4px solid blue.
The shorthand sets four properties: column-rule-inset-cap-start, column-rule-inset-cap-end, column-rule-inset-junction-start, and column-rule-inset-junction-end. The order is cap-start cap-end? / junction-start junction-end?. An omitted / group copies the cap values; an omitted end copies its corresponding start. Cap and junction identify different segment endpoint types.
Percentages refer to the crossing gap width, not the rule length. overlap-join produces an overlapping join at a junction and acts as 0 at a cap. Initial values are 0; the properties are not inherited.
This is CSSWG draft syntax, not confirmation of Chromium 152 support. The example requires local parsing and rendering verification.
Examples
<!doctype html>
<meta charset="utf-8">
<title>column-rule-inset</title>
<style>
.grid {
display: grid;
grid-template-columns: 100px 100px;
grid-template-rows: 120px;
column-gap: 40px;
width: 240px;
writing-mode: horizontal-tb;
column-rule: 4px solid blue;
column-rule-inset: 20px;
background: #eee;
}
.grid > div { background: #ddd; }
</style>
<div class="grid"><div>A</div><div>B</div></div>Result
Expected with rendering support: two 100px-wide boxes separated by a 40px gap; a blue 4px-wide, 80px-long rule centered in the gap, inset 20px from both the top and bottom.
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.