Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / CSS

rule-inset-end — inset gap-decoration ends

A CSS shorthand that sets end insets for both row and column gap decorations together.

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

Syntax

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

rule-inset-end sets column-rule-inset-end and row-rule-inset-end equally, covering both boundary and junction ends. It neither sets starts nor changes gap sizes.

It accepts one length, percentage, or overlap-join. Positive values retract ends; negative values extend them. At a junction, percentages are relative to the width of the crossing gap. At a container edge, the percentage basis is 0, so replacing the example’s 20px with a percentage would not retract the end at that edge. overlap-join joins decorations at junctions and acts as 0 at boundaries. Constituent initial values are 0 and are not inherited.

This is a CSS Gaps draft feature. The example requires local support and rendering verification; the Chromium 152 scope gate alone does not establish correctness.

Examples

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

Result

Expected with rendering support: two 80px-wide, 100px-tall cells separated by a 20px gap. A centered blue separator extends from the top to 20px above the bottom (80px long).

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