Working Draft · css-gaps

CSS Gaps

48 properties, 1 function defined by this specification, 46 of them known to at least one browser (the others are badged Not in any browser yet).

Each feature in detail

column-gap

Property Baseline: widely availablesince September 2019

MDN The column-gap CSS property sets the size of the gap (gutter) between an element's columns in multi-column, flexible box, and grid layouts.

Live preview Example from MDN
#example-element {
  border: 1px solid #c5c5c5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 200px;
}

#example-element > div {
  background-color: rgb(0 0 255 / 0.2);
  border: 3px solid blue;
}

Syntax

normal | <length-percentage [0,∞]> | <line-width>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
normal
Applies to
multi-column containers, flex containers, grid containers, and grid lanes containers
Inherited
no
Percentages
see § 2.3 Percentages In gap Properties
Computed value
specified keyword, else a computed <length-percentage> value
Canonical order
per grammar
Animation type
by computed value type

Browser support

First browser version supporting column-gap
Chrome 1
Edge 12
Firefox 1.5
Safari 3
Chrome Android 18
Safari iOS 2

First version with support, from MDN browser-compat-data.

column-rule

Property Baseline: widely availablesince September 2019

MDN The column-rule CSS shorthand property sets the width, style, and color of the lines drawn between columns in multi-column grid, flex, and multi-col layouts.

Live preview Example from MDN
#example-element {
  columns: 7;
}

Syntax

<gap-rule-list> | <gap-auto-rule-list>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
see individual properties
Applies to
see individual properties
Inherited
see individual properties
Percentages
see individual properties
Computed value
see individual properties
Canonical order
per grammar
Animation type
see individual properties
Longhands
column-rule-width, column-rule-style, column-rule-color

Browser support

First browser version supporting column-rule
Chrome 50
Edge 12
Firefox 52
Safari 9
Chrome Android 50
Safari iOS 9

First version with support, from MDN browser-compat-data.

column-rule-break

Property Limited availability Experimental Modern CSS: Gap decorations

MDN The column-rule-break CSS property sets the behavior for breaking column rules into segments wherever column rules intersect row gaps.

Live preview Example from MDN
#example-element {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  column-rule: solid thick orange;
  row-rule: solid thick lavender;
  gap: 15px;
  rule-overlap: column-over-row;
}
#example-element i {
  padding: 5px;
}

Syntax

none | normal | intersection

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
normal
Applies to
grid containers, flex containers, multicol containers, and grid lanes containers
Inherited
no
Percentages
n/a
Computed value
as specified
Canonical order
per grammar
Animation type
discrete

Browser support

First browser version supporting column-rule-break
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

column-rule-color

Property Baseline: widely availablesince September 2019 Modern CSS: Gap decorations

MDN The column-rule-color CSS property defines the colors of the lines drawn between columns in multi-column grid, flex, and multi-col layouts.

Live preview Example from MDN
#example-element {
  columns: 7;
  column-rule: solid thick;
  gap: 7px;
}

Syntax

<line-color-list> | <auto-line-color-list>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
currentcolor
Applies to
grid containers, flex containers, multicol containers, and grid lanes containers
Inherited
no
Percentages
n/a
Computed value
as specified
Canonical order
per grammar
Animation type
repeatable list, see § 4.7 Interpolation of list values.

Browser support

First browser version supporting column-rule-color
Chrome 50
Edge 12
Firefox 52
Safari 9
Chrome Android 50
Safari iOS 9

First version with support, from MDN browser-compat-data.

column-rule-inset

Property Limited availability Experimental Modern CSS: Gap decorations

No prose in the spec's definition and no MDN page yet: the spec link below is the only description.

Syntax

<'column-rule-inset-cap'> [ / <'column-rule-inset-junction'> ]?

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
see individual properties
Applies to
Same as column-rule-inset-cap, column-rule-inset-junction, row-rule-inset-cap, and row-rule-inset-junction
Inherited
see individual properties
Percentages
see individual properties
Computed value
see individual properties
Canonical order
per grammar
Animation type
see individual properties
Longhands
column-rule-inset-cap-start, column-rule-inset-cap-end, column-rule-inset-junction-start, column-rule-inset-junction-end

Browser support

First browser version supporting column-rule-inset
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

column-rule-inset-cap

Property Limited availability Experimental Modern CSS: Gap decorations

MDN The column-rule-inset-cap shorthand CSS property can be used to offset the column rule segment cap endpoints at the container's start and end edges, and endpoints where the segments don't intersect other row or column segments.

Live preview Example from MDN
#example-element {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  rule: solid thick rebeccapurple;
  column-rule-color: magenta;
  gap: 1em;
  rule-overlap: column-over-row;
  rule-visibility-items: between;
  border: 1px solid rebeccapurple;
  overflow: visible;
  margin: 1em;
}
#example-element i {
  padding: 8px;
  border: 1px dashed;
}
#y {
  grid-column: 4 / 5;
  grid-row: 4 / 5;
}
#z {
  grid-column: 5 / 6;
  grid-row: 4 / 5;
}
#bang {
  grid-column: 6 / 7;
  grid-row: 4 / 5;
}

Syntax

<inset-value> <inset-value>?

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
see individual properties
Applies to
Same as column-rule-inset-cap-start, column-rule-inset-cap-end, column-rule-inset-junction-start, column-rule-inset-junction-end, row-rule-inset-cap-start, row-rule-inset-cap-end, row-rule-inset-junction-start, and row-rule-inset-junction-end
Inherited
see individual properties
Percentages
see individual properties
Computed value
see individual properties
Canonical order
per grammar
Animation type
see individual properties
Longhands
column-rule-inset-cap-start, column-rule-inset-cap-end

Browser support

First browser version supporting column-rule-inset-cap
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

column-rule-inset-cap-end

Property Limited availability Experimental Modern CSS: Gap decorations

MDN The column-rule-inset-cap-end CSS property can be used to offset the bottom of column rule segment cap endpoints at the container's end edge, and cap endpoints where no rule segments intersect.

Live preview Example from MDN
#example-element {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  rule: solid thick magenta;
  column-rule-color: rebeccapurple;
  gap: 1em;
  rule-overlap: column-over-row;
  rule-visibility-items: between;
  border: 1px solid rebeccapurple;
  overflow: visible;
  margin: 1em;
}
#example-element i {
  padding: 8px;
  border: 1px dashed;
}
#y {
  grid-column: 4 / 5;
  grid-row: 4 / 5;
}
#z {
  grid-column: 5 / 6;
  grid-row: 4 / 5;
}
#bang {
  grid-column: 6 / 7;
  grid-row: 4 / 5;
}

Syntax

<inset-value>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
0
Applies to
grid containers, flex containers, multicol containers, and grid lanes containers
Inherited
no
Percentages
refer to the crossing gap width
Computed value
as specified
Canonical order
per grammar
Animation type
by computed value type

Browser support

First browser version supporting column-rule-inset-cap-end
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

column-rule-inset-cap-start

Property Limited availability Experimental Modern CSS: Gap decorations

MDN The column-rule-inset-cap-start CSS property can be used to offset the top of column rule segment cap endpoints at the container's start edge, and cap endpoints where no rule segments intersect.

Live preview Example from MDN
#example-element {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  rule: solid thick magenta;
  column-rule-color: rebeccapurple;
  gap: 1em;
  rule-overlap: column-over-row;
  rule-visibility-items: between;
  border: 1px solid rebeccapurple;
  overflow: visible;
  margin: 1em;
}
#example-element i {
  padding: 8px;
  border: 1px dashed;
}
#y {
  grid-column: 4 / 5;
  grid-row: 4 / 5;
}
#z {
  grid-column: 5 / 6;
  grid-row: 4 / 5;
}
#bang {
  grid-column: 6 / 7;
  grid-row: 4 / 5;
}

Syntax

<inset-value>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
0
Applies to
grid containers, flex containers, multicol containers, and grid lanes containers
Inherited
no
Percentages
refer to the crossing gap width
Computed value
as specified
Canonical order
per grammar
Animation type
by computed value type

Browser support

First browser version supporting column-rule-inset-cap-start
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

column-rule-inset-end

Property Limited availability Experimental Modern CSS: Gap decorations

No prose in the spec's definition and no MDN page yet: the spec link below is the only description.

Syntax

<inset-value>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
see individual properties
Applies to
Same as column-rule-inset-cap-start, column-rule-inset-junction-start, column-rule-inset-cap-end, column-rule-inset-junction-end, row-rule-inset-cap-start, row-rule-inset-junction-start, row-rule-inset-cap-end, and row-rule-inset-junction-end
Inherited
see individual properties
Percentages
see individual properties
Computed value
see individual properties
Canonical order
per grammar
Animation type
see individual properties
Longhands
column-rule-inset-cap-end, column-rule-inset-junction-end

Browser support

First browser version supporting column-rule-inset-end
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

column-rule-inset-junction

Property Limited availability Experimental Modern CSS: Gap decorations

MDN The column-rule-inset-junction CSS shorthand property can be used to offset both the top and bottom endpoints of column rule segments that are junction endpoints; that is, endpoints at gap junctions where rule segments intersect.

Live preview Example from MDN
#example-element {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  rule: solid thick lightpink;
  column-rule-color: magenta;
  column-rule-break: intersection;
  gap: 1.5em;
  rule-overlap: column-over-row;
  border: 1px solid rebeccapurple;
  margin: auto;
  rule-visibility-items: around;
}
#example-element i {
  background-color: #efefef;
  color: #333333;
  padding: 1em;
}

Syntax

<inset-value> <inset-value>?

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
see individual properties
Applies to
Same as column-rule-inset-cap-start, column-rule-inset-cap-end, column-rule-inset-junction-start, column-rule-inset-junction-end, row-rule-inset-cap-start, row-rule-inset-cap-end, row-rule-inset-junction-start, and row-rule-inset-junction-end
Inherited
see individual properties
Percentages
see individual properties
Computed value
see individual properties
Canonical order
per grammar
Animation type
see individual properties
Longhands
column-rule-inset-junction-start, column-rule-inset-junction-end

Browser support

First browser version supporting column-rule-inset-junction
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

column-rule-inset-junction-end

Property Limited availability Experimental Modern CSS: Gap decorations

MDN The column-rule-inset-junction-end CSS property can be used to offset the bottom endpoints of column rule segments that are junction endpoints; that is, endpoints at gap junctions where rule segments intersect.

Live preview Example from MDN
#example-element {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  rule: solid thick lightpink;
  column-rule-color: magenta;
  column-rule-break: intersection;
  gap: 1.5em;
  rule-overlap: column-over-row;
  border: 1px solid rebeccapurple;
  margin: auto;
  rule-visibility-items: around;
}
#example-element i {
  background-color: #efefef;
  color: #333333;
  padding: 1em;
}

Syntax

<inset-value>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
0
Applies to
grid containers, flex containers, multicol containers, and grid lanes containers
Inherited
no
Percentages
refer to the crossing gap width
Computed value
as specified
Canonical order
per grammar
Animation type
by computed value type

Browser support

First browser version supporting column-rule-inset-junction-end
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

column-rule-inset-junction-start

Property Limited availability Experimental Modern CSS: Gap decorations

MDN The column-rule-inset-junction-start CSS property can be used to offset the top endpoints of column rule segments that are junction endpoints; that is, endpoints at gap junctions where rule segments intersect.

Live preview Example from MDN
#example-element {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  rule: solid thick lightpink;
  column-rule-color: magenta;
  column-rule-break: intersection;
  gap: 1.5em;
  rule-overlap: column-over-row;
  border: 1px solid rebeccapurple;
  margin: auto;
  rule-visibility-items: around;
}
#example-element i {
  background-color: #efefef;
  color: #333333;
  padding: 1em;
}

Syntax

<inset-value>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
0
Applies to
grid containers, flex containers, multicol containers, and grid lanes containers
Inherited
no
Percentages
refer to the crossing gap width
Computed value
as specified
Canonical order
per grammar
Animation type
by computed value type

Browser support

First browser version supporting column-rule-inset-junction-start
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

column-rule-inset-start

Property Limited availability Experimental Modern CSS: Gap decorations

No prose in the spec's definition and no MDN page yet: the spec link below is the only description.

Syntax

<inset-value>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
see individual properties
Applies to
Same as column-rule-inset-cap-start, column-rule-inset-junction-start, column-rule-inset-cap-end, column-rule-inset-junction-end, row-rule-inset-cap-start, row-rule-inset-junction-start, row-rule-inset-cap-end, and row-rule-inset-junction-end
Inherited
see individual properties
Percentages
see individual properties
Computed value
see individual properties
Canonical order
per grammar
Animation type
see individual properties
Longhands
column-rule-inset-cap-start, column-rule-inset-junction-start

Browser support

First browser version supporting column-rule-inset-start
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

column-rule-style

Property Baseline: widely availablesince September 2019

MDN The column-rule-style CSS property defines the line style of the lines drawn between columns in multi-column grid, flex, and multi-col layouts.

Live preview Example from MDN
#example-element {
  columns: 6;
  column-rule-width: thick;
  column-rule-color: teal;
  gap: 7px;
}

Syntax

<line-style-list> | <auto-line-style-list>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
none
Applies to
grid containers, flex containers, multicol containers, and grid lanes containers
Inherited
no
Percentages
n/a
Computed value
as specified
Canonical order
per grammar
Animation type
discrete

Browser support

First browser version supporting column-rule-style
Chrome 50
Edge 12
Firefox 52
Safari 9
Chrome Android 50
Safari iOS 9

First version with support, from MDN browser-compat-data.

column-rule-visibility-items

Property Limited availability Experimental Modern CSS: Gap decorations

MDN The column-rule-visibility-items CSS property defines whether a column-rule segment is painted in gaps adjacent to empty areas.

Live preview Example from MDN
#example-element {
  display: grid;
  column-rule: solid 5px red;
  gap: 10px;
  grid-template-rows: repeat(3, 1fr);
  grid-template-columns: repeat(3, 1fr);
}
cite {
  grid-row: 3;
  grid-column: 3;
}

Syntax

all | around | between | normal

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
normal
Applies to
grid containers and multicol containers
Inherited
no
Percentages
n/a
Computed value
as specified
Canonical order
per grammar
Animation type
discrete

Browser support

First browser version supporting column-rule-visibility-items
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

column-rule-width

Property Baseline: widely availablesince September 2019

MDN The column-rule-width CSS property defines the widths of the lines drawn between columns in multi-column grid, flex, and multi-col layouts.

Live preview Example from MDN
#example-element {
  columns: 6;
  column-rule-style: solid;
  column-rule-color: teal;
  gap: 7px;
}

Syntax

<line-width-list> | <auto-line-width-list>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
medium
Applies to
grid containers, flex containers, multicol containers, and grid lanes containers
Inherited
no
Percentages
n/a
Computed value
list of absolute lengths, snapped as a border width
Canonical order
per grammar
Animation type
repeatable list, see § 4.7 Interpolation of list values.

Browser support

First browser version supporting column-rule-width
Chrome 50
Edge 12
Firefox 52
Safari 9
Chrome Android 50
Safari iOS 9

First version with support, from MDN browser-compat-data.

gap

Property Baseline: widely availablesince April 2020

MDN The gap CSS shorthand property sets the gaps (also called gutters) between rows and columns on multi-column, flex, and grid containers.

Live preview Example from MDN
#example-element {
  border: 1px solid #c5c5c5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 200px;
}

#example-element > div {
  background-color: rgb(0 0 255 / 0.2);
  border: 3px solid blue;
}

Syntax

<'row-gap'> <'column-gap'>?

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
see individual properties
Applies to
multi-column containers, flex containers, grid containers, and grid lanes containers
Inherited
no
Percentages
refer to corresponding dimension of the content area
Computed value
see individual properties
Canonical order
per grammar
Animation type
by computed value type
Longhands
row-gap, column-gap

Browser support

First browser version supporting gap
Chrome 57
Edge 16
Firefox 52
Safari 10.1
Chrome Android 57
Safari iOS 10.3

First version with support, from MDN browser-compat-data.

grid-column-gap

Property Not in any browser yet

No prose in the spec's definition and no MDN page yet: the spec link below is the only description.

Syntax

normal | <length-percentage [0,∞]> | <line-width>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

grid-gap

Property Not in any browser yet

No prose in the spec's definition and no MDN page yet: the spec link below is the only description.

Syntax

<'row-gap'> <'column-gap'>?

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

grid-row-gap

Property Not in any browser yet

No prose in the spec's definition and no MDN page yet: the spec link below is the only description.

Syntax

normal | <length-percentage [0,∞]> | <line-width>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

row-gap

Property Baseline: widely availablesince April 2020

MDN The row-gap CSS property sets the size of the gap (gutter) between an element's rows in multi-column, flexible box, and grid layouts.

Live preview Example from MDN
#example-element {
  border: 1px solid #c5c5c5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 200px;
}

#example-element > div {
  background-color: rgb(0 0 255 / 0.2);
  border: 3px solid blue;
}

Syntax

normal | <length-percentage [0,∞]> | <line-width>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
normal
Applies to
multi-column containers, flex containers, grid containers, and grid lanes containers
Inherited
no
Percentages
see § 2.3 Percentages In gap Properties
Computed value
specified keyword, else a computed <length-percentage> value
Canonical order
per grammar
Animation type
by computed value type

Browser support

First browser version supporting row-gap
Chrome 47
Edge 16
Firefox 52
Safari 10.1
Chrome Android 47
Safari iOS 10.3

First version with support, from MDN browser-compat-data.

row-rule

Property Limited availability Experimental Modern CSS: Gap decorations

MDN The row-rule CSS shorthand property sets the width, style, and color of the line drawn between rows in multi-row grid, flex, and multi-col layouts.

Live preview Example from MDN
#example-element {
  display: flex;
  flex-flow: column;
  gap: 7px;
  text-align: left;
}

Syntax

<gap-rule-list> | <gap-auto-rule-list>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
see individual properties
Applies to
see individual properties
Inherited
see individual properties
Percentages
see individual properties
Computed value
see individual properties
Canonical order
per grammar
Animation type
see individual properties
Longhands
row-rule-width, row-rule-style, row-rule-color

Browser support

First browser version supporting row-rule
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

row-rule-break

Property Limited availability Experimental Modern CSS: Gap decorations

MDN The row-rule-break CSS property sets the behavior for breaking row rules into segments where row rules intersect column gaps.

Live preview Example from MDN
#example-element {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-rule: solid thick orange;
  column-rule: solid thick lavender;
  gap: 15px;
}
#example-element i {
  padding: 5px;
}

Syntax

none | normal | intersection

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
normal
Applies to
grid containers, flex containers, multicol containers, and grid lanes containers
Inherited
no
Percentages
n/a
Computed value
as specified
Canonical order
per grammar
Animation type
discrete

Browser support

First browser version supporting row-rule-break
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

row-rule-color

Property Limited availability Experimental Modern CSS: Gap decorations

MDN The row-rule-color CSS property defines the colors of the lines drawn between rows in multi-row grid, flex, and multi-col layouts.

Live preview Example from MDN
#example-element {
  display: flex;
  flex-flow: column;
  row-rule-style: solid;
  row-rule-width: 5px;
  gap: 5px;
  text-align: left;
}

Syntax

<line-color-list> | <auto-line-color-list>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
currentcolor
Applies to
grid containers, flex containers, multicol containers, and grid lanes containers
Inherited
no
Percentages
n/a
Computed value
as specified
Canonical order
per grammar
Animation type
repeatable list, see § 4.7 Interpolation of list values.

Browser support

First browser version supporting row-rule-color
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

row-rule-inset

Property Limited availability Experimental Modern CSS: Gap decorations

No prose in the spec's definition and no MDN page yet: the spec link below is the only description.

Syntax

<'column-rule-inset-cap'> [ / <'column-rule-inset-junction'> ]?

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
see individual properties
Applies to
Same as column-rule-inset-cap, column-rule-inset-junction, row-rule-inset-cap, and row-rule-inset-junction
Inherited
see individual properties
Percentages
see individual properties
Computed value
see individual properties
Canonical order
per grammar
Animation type
see individual properties
Longhands
row-rule-inset-cap-start, row-rule-inset-cap-end, row-rule-inset-junction-start, row-rule-inset-junction-end

Browser support

First browser version supporting row-rule-inset
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

row-rule-inset-cap

Property Limited availability Experimental Modern CSS: Gap decorations

MDN The row-rule-inset-cap shorthand CSS property can be used to offset the row rule segment cap endpoints at the container's left and right edges, and endpoints where the segments don't intersect other column or row segments.

Live preview Example from MDN
#example-element {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  rule: solid thick rebeccapurple;
  row-rule-color: magenta;
  gap: 0.5em;
  rule-overlap: row-over-column;
  rule-visibility-items: between;
  border: 1px solid rebeccapurple;
  overflow: visible;
  margin: 1em;
}
#example-element i {
  padding: 8px;
  border: 1px dashed;
}
#r {
  grid-column: 5 / 6;
  grid-row: 3 / 4;
}
#z {
  grid-column: 5 / 6;
  grid-row: 4 / 5;
}
#bang {
  grid-column: 5 / 6;
  grid-row: 5 / 6;
}

Syntax

<inset-value> <inset-value>?

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
see individual properties
Applies to
Same as column-rule-inset-cap-start, column-rule-inset-cap-end, column-rule-inset-junction-start, column-rule-inset-junction-end, row-rule-inset-cap-start, row-rule-inset-cap-end, row-rule-inset-junction-start, and row-rule-inset-junction-end
Inherited
see individual properties
Percentages
see individual properties
Computed value
see individual properties
Canonical order
per grammar
Animation type
see individual properties
Longhands
row-rule-inset-cap-start, row-rule-inset-cap-end

Browser support

First browser version supporting row-rule-inset-cap
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

row-rule-inset-cap-end

Property Limited availability Experimental Modern CSS: Gap decorations

MDN The row-rule-inset-cap-end CSS property can be used to offset the end of row rule segment cap endpoints.

Live preview Example from MDN
#example-element {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  rule: solid thick magenta;
  row-rule-color: rebeccapurple;
  gap: 1em;
  rule-overlap: row-over-column;
  rule-visibility-items: between;
  border: 1px solid rebeccapurple;
  overflow: visible;
  margin: 1em;
}
#example-element i {
  padding: 8px;
  border: 1px dashed;
}
#u {
  grid-row: 3 / 4;
  grid-column: 7 / 8;
}
#y {
  grid-row: 4 / 5;
  grid-column: 4 / 5;
}
#x {
  grid-column: 3 / 4;
  grid-row: 4 / 5;
}
#bang {
  grid-column: 6 / 7;
  grid-row: 4 / 5;
}

Syntax

<inset-value>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
0
Applies to
grid containers, flex containers, multicol containers, and grid lanes containers
Inherited
no
Percentages
refer to the crossing gap width
Computed value
as specified
Canonical order
per grammar
Animation type
by computed value type

Browser support

First browser version supporting row-rule-inset-cap-end
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

row-rule-inset-cap-start

Property Limited availability Experimental Modern CSS: Gap decorations

MDN The row-rule-inset-cap-start CSS property can be used to offset the start of row rule segment cap endpoints.

Live preview Example from MDN
#example-element {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  rule: solid thick magenta;
  row-rule-color: rebeccapurple;
  gap: 1em;
  rule-overlap: row-over-column;
  rule-visibility-items: between;
  border: 1px solid rebeccapurple;
  overflow: visible;
  margin: 1em;
}
#example-element i {
  padding: 8px;
  border: 1px dashed;
}
#r {
  grid-column: 5 / 6;
  grid-row: 3 / 4;
}
#z {
  grid-column: 5 / 6;
  grid-row: 4 / 5;
}
#bang {
  grid-column: 5 / 6;
  grid-row: 5 / 6;
}

Syntax

<inset-value>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
0
Applies to
grid containers, flex containers, multicol containers, and grid lanes containers
Inherited
no
Percentages
refer to the crossing gap width
Computed value
as specified
Canonical order
per grammar
Animation type
by computed value type

Browser support

First browser version supporting row-rule-inset-cap-start
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

row-rule-inset-end

Property Limited availability Experimental Modern CSS: Gap decorations

No prose in the spec's definition and no MDN page yet: the spec link below is the only description.

Syntax

<inset-value>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
see individual properties
Applies to
Same as column-rule-inset-cap-start, column-rule-inset-junction-start, column-rule-inset-cap-end, column-rule-inset-junction-end, row-rule-inset-cap-start, row-rule-inset-junction-start, row-rule-inset-cap-end, and row-rule-inset-junction-end
Inherited
see individual properties
Percentages
see individual properties
Computed value
see individual properties
Canonical order
per grammar
Animation type
see individual properties
Longhands
row-rule-inset-cap-end, row-rule-inset-junction-end

Browser support

First browser version supporting row-rule-inset-end
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

row-rule-inset-junction

Property Limited availability Experimental Modern CSS: Gap decorations

MDN The row-rule-inset-junction CSS shorthand property can be used to offset both the left and right endpoints of row rule segments that are junction endpoints; that is, endpoints at gap junctions where rule segments intersect.

Live preview Example from MDN
#example-element {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  rule: solid thick lightpink;
  row-rule-color: magenta;
  row-rule-break: intersection;
  gap: 1.5em;
  rule-overlap: row-over-column;
  border: 1px solid rebeccapurple;
  margin: auto;
  rule-visibility-items: around;
}
#example-element i {
  background-color: #efefef;
  color: #333333;
  padding: 1em;
}

Syntax

<inset-value> <inset-value>?

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
see individual properties
Applies to
Same as column-rule-inset-cap-start, column-rule-inset-cap-end, column-rule-inset-junction-start, column-rule-inset-junction-end, row-rule-inset-cap-start, row-rule-inset-cap-end, row-rule-inset-junction-start, and row-rule-inset-junction-end
Inherited
see individual properties
Percentages
see individual properties
Computed value
see individual properties
Canonical order
per grammar
Animation type
see individual properties
Longhands
row-rule-inset-junction-start, row-rule-inset-junction-end

Browser support

First browser version supporting row-rule-inset-junction
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

row-rule-inset-junction-end

Property Limited availability Experimental Modern CSS: Gap decorations

MDN The row-rule-inset-junction-end CSS property can be used to offset the end edge of row rule segments that are junction endpoints, that is, endpoints at gap junctions where rule segments intersect.

Live preview Example from MDN
#example-element {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  rule: solid thick lightpink;
  row-rule-color: magenta;
  row-rule-break: intersection;
  gap: 1.5em;
  rule-overlap: row-over-column;
  border: 1px solid rebeccapurple;
  margin: auto;
  rule-visibility-items: around;
}
#example-element i {
  padding: 8px;
  border: 1px dashed;
}
#u {
  grid-row: 3 / 4;
  grid-column: 7 / 8;
}
#y {
  grid-row: 4 / 5;
  grid-column: 4 / 5;
}
#x {
  grid-column: 3 / 4;
  grid-row: 4 / 5;
}
#bang {
  grid-column: 6 / 7;
  grid-row: 4 / 5;
}

Syntax

<inset-value>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
0
Applies to
grid containers, flex containers, multicol containers, and grid lanes containers
Inherited
no
Percentages
refer to the crossing gap width
Computed value
as specified
Canonical order
per grammar
Animation type
by computed value type

Browser support

First browser version supporting row-rule-inset-junction-end
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

row-rule-inset-junction-start

Property Limited availability Experimental Modern CSS: Gap decorations

MDN The row-rule-inset-junction-start CSS property can be used to offset the start edge of row rule segments that are junction endpoints; that is, endpoints at gap junctions where rule segments intersect.

Live preview Example from MDN
#example-element {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  rule: solid thick lightpink;
  row-rule-color: magenta;
  row-rule-break: intersection;
  gap: 1.5em;
  rule-overlap: row-over-column;
  border: 1px solid rebeccapurple;
  margin: auto;
  rule-visibility-items: around;
}
#example-element i {
  padding: 8px;
  border: 1px dashed;
}
#u {
  grid-row: 3 / 4;
  grid-column: 7 / 8;
}
#y {
  grid-row: 4 / 5;
  grid-column: 4 / 5;
}
#x {
  grid-column: 3 / 4;
  grid-row: 4 / 5;
}
#bang {
  grid-column: 6 / 7;
  grid-row: 4 / 5;
}

Syntax

<inset-value>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
0
Applies to
grid containers, flex containers, multicol containers, and grid lanes containers
Inherited
no
Percentages
refer to the crossing gap width
Computed value
as specified
Canonical order
per grammar
Animation type
by computed value type

Browser support

First browser version supporting row-rule-inset-junction-start
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

row-rule-inset-start

Property Limited availability Experimental Modern CSS: Gap decorations

No prose in the spec's definition and no MDN page yet: the spec link below is the only description.

Syntax

<inset-value>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
see individual properties
Applies to
Same as column-rule-inset-cap-start, column-rule-inset-junction-start, column-rule-inset-cap-end, column-rule-inset-junction-end, row-rule-inset-cap-start, row-rule-inset-junction-start, row-rule-inset-cap-end, and row-rule-inset-junction-end
Inherited
see individual properties
Percentages
see individual properties
Computed value
see individual properties
Canonical order
per grammar
Animation type
see individual properties
Longhands
row-rule-inset-cap-start, row-rule-inset-junction-start

Browser support

First browser version supporting row-rule-inset-start
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

row-rule-style

Property Limited availability Experimental Modern CSS: Gap decorations

MDN The row-rule-style CSS property defines the line style of the lines drawn between rows in multi-row grid, flex, and multi-col layouts.

Live preview Example from MDN
#example-element {
  display: flex;
  flex-flow: column;
  row-rule-width: thick;
  row-rule-color: magenta;
  gap: 7px;
  text-align: left;
}

Syntax

<line-style-list> | <auto-line-style-list>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
none
Applies to
grid containers, flex containers, multicol containers, and grid lanes containers
Inherited
no
Percentages
n/a
Computed value
as specified
Canonical order
per grammar
Animation type
discrete

Browser support

First browser version supporting row-rule-style
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

row-rule-visibility-items

Property Limited availability Experimental Modern CSS: Gap decorations

MDN The row-rule-visibility-items CSS property defines whether a row-rule segment is painted in gaps adjacent to empty areas.

Live preview Example from MDN
#example-element {
  display: grid;
  row-rule: solid 5px red;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
}
cite {
  grid-column: 3;
  grid-row: 3;
}

Syntax

all | around | between | normal

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
normal
Applies to
grid containers and multicol containers
Inherited
no
Percentages
n/a
Computed value
as specified
Canonical order
per grammar
Animation type
discrete

Browser support

First browser version supporting row-rule-visibility-items
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

row-rule-width

Property Limited availability Experimental Modern CSS: Gap decorations

MDN The row-rule-width CSS property defines the widths of the lines drawn between rows in multi-row grid, flex, and multi-col layouts.

Live preview Example from MDN
#example-element {
  display: flex;
  flex-flow: column;
  row-rule-style: solid;
  row-rule-color: magenta;
  gap: 5px;
  text-align: left;
}

Syntax

<line-width-list> | <auto-line-width-list>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
medium
Applies to
grid containers, flex containers, multicol containers, and grid lanes containers
Inherited
no
Percentages
n/a
Computed value
list of absolute lengths, snapped as a border width
Canonical order
per grammar
Animation type
repeatable list, see § 4.7 Interpolation of list values.

Browser support

First browser version supporting row-rule-width
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

rule

Property Limited availability Experimental Modern CSS: Gap decorations

MDN The rule CSS shorthand property sets the width, style, and color of the line drawn between rows and columns in multi-row grid, flex, and multi-col layouts, setting both the column and row rules to the same values.

Live preview Example from MDN
#example-element {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  rule: solid thick;
}
#example-element i {
  padding: 5px;
}

Syntax

<'column-rule'>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
see individual properties
Applies to
Same as column-rule and row-rule
Inherited
no
Percentages
see individual properties
Computed value
see individual properties
Canonical order
per grammar
Animation type
see individual properties
Longhands
column-rule, row-rule

Browser support

First browser version supporting rule
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

rule-break

Property Limited availability Experimental Modern CSS: Gap decorations

MDN The rule-break CSS shorthand property sets the behavior for breaking column and row rules into segments where rows and column gaps intersect, setting column-rule-break and row-rule-break to the same value.

Live preview Example from MDN
#example-element {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-rule: solid thick orange;
  column-rule: solid thick purple;
  gap: 10px;
}
#example-element i {
  padding: 5px;
}

Syntax

<'column-rule-break'>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
see individual properties
Applies to
Same as column-rule-break and row-rule-break
Inherited
see individual properties
Percentages
see individual properties
Computed value
see individual properties
Canonical order
per grammar
Animation type
see individual properties
Longhands
column-rule-break, row-rule-break

Browser support

First browser version supporting rule-break
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

rule-color

Property Limited availability Experimental Modern CSS: Gap decorations

MDN The rule-color CSS shorthand property defines the colors of the lines drawn between columns and rows in multi-column grid, flex, and multi-col layouts, setting the colors of the column and row rules to the same value.

Live preview Example from MDN
#example-element {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  rule: solid thick;
}
#example-element i {
  padding: 5px;
}

Syntax

<'column-rule-color'>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
see individual properties
Applies to
Same as column-rule-color and row-rule-color
Inherited
no
Percentages
see individual properties
Computed value
see individual properties
Canonical order
per grammar
Animation type
see individual properties
Longhands
column-rule-color, row-rule-color

Browser support

First browser version supporting rule-color
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

rule-inset

Property Limited availability Experimental Modern CSS: Gap decorations

No prose in the spec's definition and no MDN page yet: the spec link below is the only description.

Syntax

<'column-rule-inset'>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
see individual properties
Applies to
Same as column-rule-inset and row-rule-inset
Inherited
see individual properties
Percentages
see individual properties
Computed value
see individual properties
Canonical order
per grammar
Animation type
see individual properties
Longhands
column-rule-inset, row-rule-inset

Browser support

First browser version supporting rule-inset
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

rule-inset-cap

Property Limited availability Experimental Modern CSS: Gap decorations

MDN The rule-inset-cap CSS shorthand property can be used to offset the column and row rule segment cap endpoints to the same value.

Live preview Example from MDN
#example-element {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  rule: solid thick magenta;
  column-rule-color: rebeccapurple;
  gap: 1em;
  rule-overlap: column-over-row;
  rule-visibility-items: between;
  border: 1px solid rebeccapurple;
  overflow: visible;
  margin: 1em;
}
#example-element i {
  padding: 8px;
  border: 1px dashed;
}
#y {
  grid-column: 4 / 5;
  grid-row: 4 / 5;
}
#z {
  grid-column: 5 / 6;
  grid-row: 4 / 5;
}
#bang {
  grid-column: 6 / 7;
  grid-row: 4 / 5;
}

Syntax

<'column-rule-inset-cap'>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
see individual properties
Applies to
Same as column-rule-inset-cap and row-rule-inset-cap
Inherited
see individual properties
Percentages
see individual properties
Computed value
see individual properties
Canonical order
per grammar
Animation type
see individual properties
Longhands
column-rule-inset-cap

Browser support

First browser version supporting rule-inset-cap
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

rule-inset-end

Property Limited availability Experimental Modern CSS: Gap decorations

No prose in the spec's definition and no MDN page yet: the spec link below is the only description.

Syntax

<'column-rule-inset-end'>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
see individual properties
Applies to
Same as column-rule-inset-end and row-rule-inset-end
Inherited
see individual properties
Percentages
see individual properties
Computed value
see individual properties
Canonical order
per grammar
Animation type
see individual properties
Longhands
column-rule-inset-end, row-rule-inset-end

Browser support

First browser version supporting rule-inset-end
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

rule-inset-junction

Property Limited availability Experimental Modern CSS: Gap decorations

MDN The rule-inset-junction CSS shorthand property can be used to offset the column and row rule segment junction endpoints to the same value.

Live preview Example from MDN
#example-element {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  rule: solid thick lightpink;
  column-rule-color: magenta;
  rule-break: intersection;
  gap: 1.5em;
  rule-overlap: column-over-row;
  border: 1px solid rebeccapurple;
  margin: auto;
  rule-visibility-items: around;
}
#example-element i {
  background-color: #efefef;
  color: #333333;
  padding: 1em;
}

Syntax

<'column-rule-inset-junction'>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
see individual properties
Applies to
Same as column-rule-inset-junction and row-rule-inset-junction
Inherited
see individual properties
Percentages
see individual properties
Computed value
see individual properties
Canonical order
per grammar
Animation type
see individual properties
Longhands
column-rule-inset-junction

Browser support

First browser version supporting rule-inset-junction
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

rule-inset-start

Property Limited availability Experimental Modern CSS: Gap decorations

No prose in the spec's definition and no MDN page yet: the spec link below is the only description.

Syntax

<'column-rule-inset-start'>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
see individual properties
Applies to
Same as column-rule-inset-start and row-rule-inset-start
Inherited
see individual properties
Percentages
see individual properties
Computed value
see individual properties
Canonical order
per grammar
Animation type
see individual properties
Longhands
column-rule-inset-start, row-rule-inset-start

Browser support

First browser version supporting rule-inset-start
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

rule-overlap

Property Limited availability Experimental Modern CSS: Gap decorations

MDN The rule-overlap CSS property specifies which rule is painted on top when column rules and row rules intersect.

Live preview Example from MDN
#example-element {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-rule: solid thick orange;
  column-rule: solid thick purple;
}
#example-element i {
  padding: 5px;
}

Syntax

row-over-column | column-over-row

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
row-over-column
Applies to
grid containers, flex containers, and grid lanes containers
Inherited
no
Percentages
n/a
Computed value
as specified
Canonical order
per grammar
Animation type
discrete

Browser support

First browser version supporting rule-overlap
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

rule-style

Property Limited availability Experimental Modern CSS: Gap decorations

MDN The rule-style CSS shorthand property defines the line style of the lines drawn between columns and rows in multi-column grid, flex, and multi-col layouts, setting the styles of the column and row rules to the same value.

Live preview Example from MDN
#example-element {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  rule: solid rebeccapurple 7px;
  gap: 7px;
}
#example-element i {
  padding: 5px;
}

Syntax

<'column-rule-style'>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
see individual properties
Applies to
Same as column-rule-style and row-rule-style
Inherited
no
Percentages
see individual properties
Computed value
see individual properties
Canonical order
per grammar
Animation type
see individual properties
Longhands
column-rule-style, row-rule-style

Browser support

First browser version supporting rule-style
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

rule-visibility-items

Property Limited availability Experimental Modern CSS: Gap decorations

MDN The rule-visibility-items CSS shorthand property defines whether rule segments are painted in both row and column gaps adjacent to empty areas.

Live preview Example from MDN
#example-element {
  display: grid;
  rule: solid 5px red;
  gap: 10px;
  grid-template-rows: repeat(3, 1fr);
  grid-template-columns: repeat(3, 1fr);
}
cite {
  grid-row: 3;
  grid-column: 3;
}

Syntax

<'column-rule-visibility-items'>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
see individual properties
Applies to
Same as column-rule-visibility-items and row-rule-visibility-items
Inherited
see individual properties
Percentages
see individual properties
Computed value
see individual properties
Canonical order
per grammar
Animation type
see individual properties
Longhands
column-rule-visibility-items

Browser support

First browser version supporting rule-visibility-items
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

rule-width

Property Limited availability Experimental Modern CSS: Gap decorations

MDN The rule-width CSS shorthand property defines the widths of any lines drawn in the gutters of multi-row grid, flex, and multi-col layouts, setting the widths of the column and row rules to the same value.

Live preview Example from MDN
#example-element {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  rule: solid magenta;
}
#example-element i {
  padding: 5px;
}

Syntax

<'column-rule-width'>

Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.

Definition

Initial
see individual properties
Applies to
Same as column-rule-width and row-rule-width
Inherited
no
Percentages
see individual properties
Computed value
see individual properties
Canonical order
per grammar
Animation type
see individual properties
Longhands
column-rule-width, row-rule-width

Browser support

First browser version supporting rule-width
Chrome 149
Edge 149
Firefox No
Safari No
Chrome Android 149
Safari iOS No

First version with support, from MDN browser-compat-data.

repeat()

Function Baseline: widely availablesince April 2020

Spec Such a list may contain repeat() notations. Similar to CSS Grid Layout 1 § 7.2.3 Repeating Rows and Columns: the repeat() notation, these notations allow a series of gap decorations that exhibit a recurring pattern to be written in a more compact form.

MDN The repeat() CSS function represents a repeated fragment of the track list or rule-line list. It allows repeated patterns of columns, rows, and their gap decorations, to be written in a compact form.

Live preview Example from MDN
#example-element {
  border: 1px solid #c5c5c5;
  display: grid;
  grid-auto-rows: 40px;
  grid-gap: 10px;
  width: 220px;
  rule: solid 4px;
}

#example-element > div {
  background-color: rgb(0 0 255 / 0.2);
  border: 3px solid blue;
}

Browser support

First browser version supporting repeat()
Chrome 57
Edge 16
Firefox 76
Safari 10.1
Chrome Android 57
Safari iOS 10.3

First version with support, from MDN browser-compat-data.

Defined for

<auto-repeat-line-color>, <auto-repeat-line-style>, <auto-repeat-line-width>, <repeat-line-color>, <repeat-line-style>, <repeat-line-width>, <auto-repeat>, <fixed-repeat>, <track-repeat>

This feature only appears in the context of these properties, functions or types.