Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / CSS

rule-inset-start — offset separator starts

A CSS shorthand that offsets the starts of row and column gap decorations together, 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

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

rule-inset-start assigns one value to column-rule-inset-start and row-rule-inset-start, covering both cap and junction starts. It changes neither end endpoints nor gap sizes.

Positive lengths shorten decorations from their starts; negative lengths extend them. Percentages reference the crossing gap’s width. overlap-join produces overlapping junction joins; at cap endpoints it acts as 0. Component initial values are 0; they are not inherited.

This is a draft-specification feature. The example requires rendering verification in the target browser; declaration acceptance alone is insufficient.

Examples

<!doctype html>
<meta charset="utf-8">
<title>rule-inset-start</title>
<style>
  .grid {
    display: grid;
    grid-template-columns: 80px 80px;
    grid-template-rows: 60px 60px;
    gap: 20px;
    width: 180px;
    writing-mode: horizontal-tb;
    direction: ltr;
    column-rule: 2px solid black;
    row-rule: 2px solid black;
    rule-break: none;
    rule-inset-start: 12px;
  }
  .grid > div { background: #ddd; }
</style>
<div class="grid">
  <div>A</div><div>B</div>
  <div>C</div><div>D</div>
</div>

Result

With rendering support: four gray cells and two crossing black separators. The vertical separator starts 12px below the grid’s top edge; the horizontal separator starts 12px to the right of its left edge. Their end endpoints remain unchanged.

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