CARVIEW |
CSS Gap Decorations Module Level 1
W3C First Public Working Draft,
More details about this document
- This version:
- https://www.w3.org/TR/2025/WD-css-gaps-1-20250417/
- Latest published version:
- https://www.w3.org/TR/css-gaps-1/
- Editor's Draft:
- https://drafts.csswg.org/css-gaps-1/
- History:
- https://www.w3.org/standards/history/css-gaps-1/
- Feedback:
- CSSWG Issues Repository
- Inline In Spec
- Editor:
- Kevin Babbitt (Microsoft)
- Suggest an Edit for this Spec:
- GitHub Editor
Copyright © 2025 World Wide Web Consortium. W3C® liability, trademark and permissive document license rules apply.
Abstract
This module introduces several properties to add row and column gap decorations to container layout types such as grid and flex.
CSS is a language for describing the rendering of structured documents (such as HTML and XML) on screen, on paper, etc.Status of this document
This section describes the status of this document at the time of its publication. A list of current W3C publications and the latest revision of this technical report can be found in the W3C standards and drafts index at https://www.w3.org/TR/.
This document was published by the CSS Working Group as a First Public Working Draft using the Recommendation track. Publication as a First Public Working Draft does not imply endorsement by W3C and its Members.
This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress.
Please send feedback by filing issues in GitHub (preferred), including the spec code “css-gaps” in the title, like this: “[css-gaps] …summary of comment…”. All issues and comments are archived. Alternately, feedback can be sent to the (archived) public mailing list www-style@w3.org.
This document is governed by the 03 November 2023 W3C Process Document.
This document was produced by a group operating under the W3C Patent Policy. W3C maintains a public list of any patent disclosures made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) must disclose the information in accordance with section 6 of the W3C Patent Policy.
1. Introduction
This section is not normative.
CSS Multicol 1 § 4 Column Gaps and Rules allows for rules to be drawn between columns in a multicol container. This specification expands upon the column-rule-width, column-rule-style, and column-rule-color properties, adding equivalents in the row direction, expanding their application to other container layouts, and giving advanced control over where and how gap decorations are painted.
1.1. Value Definitions
This specification follows the CSS property definition conventions from [CSS2] using the value definition syntax from [CSS-VALUES-3]. Value types not defined in this specification are defined in CSS Values & Units [CSS-VALUES-3]. Combination with other CSS modules may expand the definitions of these value types.
In addition to the property-specific values listed in their definitions, all properties defined in this specification also accept the CSS-wide keywords as their property value. For readability they have not been repeated explicitly.
2. Gap decorations
Various layouts in CSS such as multicol containers, flex containers, grid containers, and masonry containers position child boxes adjacent to each other with gaps, also known as gutters, between them. Each such gap may contain a gap decoration, which is a visible separator (such as a line) painted between adjacent boxes.
.grid-with-spans { display: grid; grid-template: repeat(4, 100px) / repeat(4, 100px); gap: 20px; row-rule: 6px solid red; column-rule: 6px solid blue; }

.flex { display: flex; flex-wrap: wrap; gap: 20px; width: 500px; row-rule: 6px solid red; column-rule: 6px solid blue; }

2.1. Layout and painting
This specification does not generally define the geometry of gaps in container layouts; that is left to other specifications. See CSS Box Alignment 3 § 8 Gaps Between Boxes for definitions pertaining to multicol containers, flex containers, and grid containers.
Gap decorations do not take up space. That is, the presence or width of a gap decoration will not alter the placement of anything else. If a gap decoration is wider than its gap, any adjacent boxes will overlap the decoration, and in some cases the decoration may extend outside the box of the container. Gap decorations are painted just above the border of the container. For scrollable containers, note that while the border and background of the container aren’t scrolled, the decorations need to scroll along with items in the container.
A gap intersection point is defined to exist in each of the following locations:
- The center of an intersection between a gap and the content edge of the container.
- The center of an intersection between gaps in different directions.
The following examples illustrate the locations of gap intersection points, marked with a magenta + in each case.
.grid { display: grid; grid-template: repeat(4, 100px) / repeat(4, 100px); gap: 20px; background: rgb(255 255 128); } .grid > * { border: 1px dashed black; }

.flex { display: flex; flex-wrap: wrap; gap: 20px; width: 500px; background: rgb(255 255 128); } .flex > * { border: 1px dashed black; }

Note: CSS Box Alignment 3 § 8.1 Row and Column Gutters: the row-gap and column-gap properties defines cross-direction gaps in flex containers as being between adacent flex items in a single line. Thus, in the example above, even though the right edges of #4 and #7 line up, and the left edges of #5 and #8 line up, the spaces between those two pairs of items are two distinct gaps since they are on different lines. Therefore, the intersection between #4, #5, #7, and #8 contains two gap intersection points whose locations coincide: one at the bottom of the gap between #4 and #5, and one at the top of the gap between #7 and #8.
Gap decorations are painted relative to pairs of gap intersection points, in the center of the corresponding gap and parallel to its edges.
2.2. Breaking gap decorations into segments: The column-rule-break, row-rule-break, and rule-break properties
Name: | column-rule-break, row-rule-break |
---|---|
Value: | none | spanning-item | intersection |
Initial: | spanning-item |
Applies to: | grid containers, flex containers, multicol containers, and masonry containers |
Inherited: | no |
Percentages: | n/a |
Computed value: | as specified |
Canonical order: | per grammar |
Animation type: | discrete |
Sets the behavior for breaking decorations within a given gap into segments at visible "T" or "cross" intersections formed by items in the container. Precise details for how to apply these values are given in the steps to determine pairs of gap decoration endpoints.
- none
- Gap decorations do not start or end at visible "T" or "cross" intersections. Instead, a single continuous decoration is painted from one end of the gap to the other.
- spanning-item
- Gap decorations start and end at visible "T" intersections but continue through visible "cross" intersections.
- intersection
- Gap decorations start and end at visible "T" and "cross" intersections.
Name: | rule-break |
---|---|
Value: | <'column-rule-break'> |
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 |
Animation type: | see individual properties |
Canonical order: | per grammar |
Sets the column-rule-break and row-rule-break properties to the same value.
2.2.1. Pairing gap intersection points into segments
Note: The primary use case for this definition is to avoid having gap decorations intersect spanning items when not intended by the author,
for example when a spanning item touches the edge of the container,
or when a spanning item forms a "T intersection".
However, the specific phrasing of the definition
is also intended to address cases such as the one below:
The four marked gap intersection points fall along a common gap centerline.
However, because item 3 is slightly wider than items 1 and 5,
the second and third points from the top are discontiguous.
Thus, the two upper gap intersection points form a pair,
and the two lower gap intersection points form a pair.
(There is an additional pair of gap intersection points,
slightly offset to the right of the two middle points,
which are not marked.
These points will form another pair.)
- Let pairs be an empty list. Let endpoints be the list of gap intersection points that fall along the centerline of gap, ordered from start to end along gap’s axis. Let break be the used value of either column-rule-break or row-rule-break, whichever applies to gap.
- If endpoints contains fewer than 2 items, return pairs.
- If break is other than none, and the first two items in endpoints are discontiguous, remove the first item from endpoints, then go back to step 2.
- Remove the first item from endpoints. Let start be equal to that item.
- Remove the first item from endpoints. Let end be equal to that item.
-
If endpoints is non-empty, and any of the following conditions are true...
- break is none.
- break is spanning-item, and start is not discontiguous with the first item in endpoints.
- break is intersection, and start is not discontiguous with the first item in endpoints, and the intersection is flanked by spanning items on opposing sides.
- Compute the offset for start within gap. Offset start by the result, in the forward direction along gap’s axis.
- Compute the offset for end within gap. Offset end by the result, in the reverse direction along gap’s axis.
- Add to pairs a tuple consisting of start and end.
- Go back to step 2.
A gap decoration is painted between each pair of endpoints identified using the steps above.
The following examples illustrate various settings for the *-rule-break properties. To make the differences more apparent, the *-rule-outset properties are set to 0.
.break-none-grid { display: grid; grid-template: repeat(4, 100px) / repeat(4, 100px); gap: 20px; row-rule: 6px solid red; column-rule: 6px solid blue; rule-break: none; rule-outset: 0px; }

.break-spanning-item-grid { display: grid; grid-template: repeat(4, 100px) / repeat(4, 100px); gap: 20px; row-rule: 6px solid red; column-rule: 6px solid blue; rule-break: spanning-item; rule-outset: 0px; }

.break-intersection-grid { display: grid; grid-template: repeat(4, 100px) / repeat(4, 100px); gap: 20px; row-rule: 6px solid red; column-rule: 6px solid blue; rule-break: intersection; rule-outset: 0px; }

.break-none-flex { display: flex; flex-wrap: wrap; gap: 20px; row-rule: 6px solid red; column-rule: 6px solid blue; rule-break: none; rule-outset: 0px; }

Note: Because flexbox has no concept of spanning items, spanning-item on a flexbox has the same effect as none.
.break-intersection-flex { display: flex; flex-wrap: wrap; gap: 20px; width: 500px; gap: 20px; row-rule: 6px solid red; column-rule: 6px solid blue; rule-break: intersection; rule-outset: 0px; }

2.3. Adjusting gap decoration endpoints: The column-rule-outset, row-rule-outset, and rule-outset properties
Name: | column-rule-outset, row-rule-outset |
---|---|
Value: | <length-percentage> |
Initial: | 50% |
Applies to: | grid containers, flex containers, multicol containers, and masonry containers |
Inherited: | no |
Percentages: | refer to the crossing gap width |
Computed value: | as specified |
Canonical order: | per grammar |
Animation type: | by computed value type |
These properties can be used to offset the endpoints of gap decorations relative to the gap intersection points which would normally determine their endpoints. The initial value of 50% places the gap decoration endpoint in the center of the intersection. With a value of 0, the gap decoration endpoint will coincide with the edge of the intersection. Positive values extend towards the center of the intersection; negative values recede from it. These offsets also apply at the edges of the container, where positive values may extend beyond the content bounds of the container.
Name: | rule-outset |
---|---|
Value: | <'column-rule-outset'> |
Initial: | see individual properties |
Applies to: | Same as column-rule-outset and row-rule-outset |
Inherited: | see individual properties |
Percentages: | see individual properties |
Computed value: | see individual properties |
Animation type: | see individual properties |
Canonical order: | per grammar |
Sets the column-rule-outset and row-rule-outset properties to the same value.
.outset-0px { column-rule-outset: 0px; column-rule-break: intersection; }

.outset-5px { column-rule-outset: 5px; column-rule-break: intersection; }

.outset-50percent { column-rule-outset: 50%; column-rule-break: intersection; }

.outset-negative-5px { column-rule-outset: -5px; column-rule-break: intersection; }

When considering the gap intersection points within a given gap, each point is assigned a crossing gap width, defined as follows:
- At the content edge of the container
- The crossing gap width is 0.
- At an intersection with another gap
- The crossing gap width is the used value of the column-gap or row-gap property, whichever applies to the intersecting gap.
- Let width be the crossing gap width for point.
- Let outset be the computed value of either column-rule-outset or row-rule-outset, whichever applies to gap. Resolve any percentages in outset against width.
- Let result be width multiplied by 50%. Subtract outset from result.
- Return result.
For details on how the offset is applied, see the steps to determine pairs of gap decoration endpoints.
2.4. Gap decoration paint order: The rule-paint-order property
Name: | rule-paint-order |
---|---|
Value: | row-over-column | column-over-row |
Initial: | row-over-column |
Applies to: | grid containers, flex containers, and masonry containers |
Inherited: | no |
Percentages: | n/a |
Computed value: | as specified |
Canonical order: | per grammar |
Animation type: | discrete |
Sets the paint order for gap decorations in two-dimensional containers.
The following examples illustrate adjustment of gap decoration paint order using the rule-paint-order property.
.row-over-coulumn { rule-paint-order: row-over-column; row-rule: 6px solid red; column-rule: 6px solid blue; }

rule-paint-order: column-over-row; row-rule: 6px solid red; column-rule: 6px solid blue;

3. Color, style, and width
Property definitions in this section supersede the definitions of properties with the same names in [CSS-MULTICOL-1].
3.1. Gap decoration color: The column-rule-color and row-rule-color properties
Name: | column-rule-color, row-rule-color |
---|---|
Value: | <line-color-list> | <auto-line-color-list> |
Initial: | currentcolor |
Applies to: | grid containers, flex containers, multicol containers, and masonry containers |
Inherited: | no |
Percentages: | n/a |
Computed value: | as specified |
Canonical order: | per grammar |
Animation type: | by computed value type |
<line-color-list> = [ <line-color-or-repeat> ]+ <auto-line-color-list> = [ <line-color-or-repeat> ]* <auto-repeat-line-color> [ <line-color-or-repeat> ]* <line-color-or-repeat> = [ <color> | <repeat-line-color> ] <repeat-line-color> = repeat( [ <integer [1,∞]> ] , [ <color> ]+ ) <auto-repeat-line-color> = repeat( auto , [ <color> ]+ )
- <color>
- Sets the color of gap decorations.
3.2. Gap decoration style: The column-rule-style and row-rule-style properties
Name: | column-rule-style, row-rule-style |
---|---|
Value: | <line-style-list> | <auto-line-style-list> |
Initial: | none |
Applies to: | grid containers, flex containers, multicol containers, and masonry containers |
Inherited: | no |
Percentages: | n/a |
Computed value: | as specified |
Canonical order: | per grammar |
Animation type: | discrete |
<line-style-list> = [ <line-style-or-repeat> ]+ <auto-line-style-list> = [ <line-style-or-repeat> ]* <auto-repeat-line-style> [ <line-style-or-repeat> ]* <line-style-or-repeat> = [ <line-style> | <repeat-line-style> ] <repeat-line-style> = repeat( [ <integer [1,∞]> ] , [ <line-style> ]+ ) <auto-repeat-line-style> = repeat( auto , [ <line-style> ]+ )
These properties set the styles of gap decorations. The <line-style> values are interpreted as in the collapsing border model.
3.3. Gap decoration width: The column-rule-width and row-rule-width properties
Name: | column-rule-width, row-rule-width |
---|---|
Value: | <line-width-list> | <auto-line-width-list> |
Initial: | medium |
Applies to: | grid containers, flex containers, multicol containers, and masonry containers |
Inherited: | no |
Percentages: | n/a |
Computed value: | list of absolute lengths, snapped as a border width, or 0 under conditions described below |
Canonical order: | per grammar |
Animation type: | by computed value type |
<line-width-list> = [ <line-width-or-repeat> ]+ <auto-line-width-list> = [ <line-width-or-repeat> ]* <auto-repeat-line-width> [ <line-width-or-repeat> ]* <line-width-or-repeat> = [ <line-width> | <repeat-line-width> ] <repeat-line-width> = repeat( [ <integer [1,∞]> ] , [ <line-width> ]+ ) <auto-repeat-line-width> = repeat( auto , [ <line-width> ]+ )
This property sets the widths of gap decorations. Negative values are not allowed.
If the computed value of column-rule-style is none or hidden, then the computed value of column-rule-width is 0. This behavior is for backwards compatibility with CSS Multicol 1 § 4.4 The Width Of Column Rules: the column-rule-width property.
Should the "force to 0" behavior apply when lists of values are involved? If so, how should this be handled with unaligned lists?
3.4. Lists of values and the repeat() notation
Each of the properties in this section accepts a space-separated list of values. Setting multiple values in this way allows for varying gap decorations within a given container.
column-rule-width: 1px; column-rule-style: solid; column-rule-color: red blue;
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.
The generic form of the repeat() syntax is, approximately,
repeat( [ <integer [1,∞]> | auto ] , <value>+ )
The first argument to repeat() specifies the number of repetitions.
- <integer>
- Specifies an integer repeater. An integer repeater expands out to the list of values in the second argument, repeated as many times as specified by the first argument.
- auto
-
Specfies an auto repeater.
An auto repeater will be used to fill in values for gaps
that would not otherwise receive values from other parts of the list.
At most one repeat() in a given list of values may be an auto repeater.
Continuing from the previous example, if the author does not know how many columns will be in the final layout, they might instead write:
column-rule-color: gray repeat(auto, red blue) gray;
Which will produce a gray decoration in the first and last column gaps, and alternating red and blue decorations in the in-between column gaps.
The second argument to repeat() is a space-separated list of values that would be accepted by the property in which the repeat() appears.
- Replace any integer repeaters in values with their expanded-out equivalents.
- If the list contains no auto repeater, then:
- Beginning from the first item in values and the first item in gaps, assign each value to the corresponding gap. If there are fewer values than gaps, repeat beginning from the first item in values, as many times as needed.
- End this algorithm.
- values contains an auto repeater. Let leading count be the number of items in values before the auto repeater. Let trailing count be the number of items in values after the auto repeater.
-
Partition gaps as follows:
- Let leading gaps contain the first leading count items in gaps.
- Let trailing gaps contain the last trailing count items in gaps, excluding any items in leading gaps.
- Let auto gaps contain any items in gaps that are not in either leading gaps or trailing gaps.
- If leading gaps is non-empty, assign gap decoration values to leading gaps using the first leading count items in values.
- If trailing gaps is non-empty, assign gap decoration values in reverse to trailing gaps using the last trailing count items in values.
- If auto gaps is non-empty, assign gap decoration values to auto gaps using the list of values in the second argument of the auto repeater.
3.5. Gap decoration shorthands: The column-rule and row-rule properties
Name: | column-rule, row-rule |
---|---|
Value: | <gap-rule-list> | <gap-auto-rule-list> |
Initial: | see individual properties |
Applies to: | see individual properties |
Inherited: | see individual properties |
Percentages: | see individual properties |
Computed value: | see individual properties |
Animation type: | see individual properties |
Canonical order: | per grammar |
<gap-rule-list> = <gap-rule-or-repeat># <gap-auto-rule-list> = <gap-rule-or-repeat>#? , <gap-auto-repeat-rule> , <gap-rule-or-repeat>#? <gap-rule-or-repeat> = <gap-rule> | <gap-repeat-rule> <gap-repeat-rule> = repeat( <integer [1,∞]> , <gap-rule># ) <gap-auto-repeat-rule> = repeat( auto , <gap-rule># ) <gap-rule> = <line-width> || <line-style> || <color>
These shorthands set the corresponding width, style, and color properties as a set.
3.6. Bi-directional gap decoration shorthands: The rule-color, rule-style, rule-width, and rule properties
Name: | rule-color |
---|---|
Value: | <'column-rule-color'> |
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 |
Animation type: | see individual properties |
Canonical order: | per grammar |
Name: | rule-style |
---|---|
Value: | <'column-rule-style'> |
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 |
Animation type: | see individual properties |
Canonical order: | per grammar |
Name: | rule-width |
---|---|
Value: | <'column-rule-width'> |
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 |
Animation type: | see individual properties |
Canonical order: | per grammar |
Name: | rule |
---|---|
Value: | <'column-rule'> |
Initial: | see individual properties |
Applies to: | Same as column-rule and row-rule |
Inherited: | no |
Percentages: | see individual properties |
Computed value: | see individual properties |
Animation type: | see individual properties |
Canonical order: | per grammar |
These shorthands set the corresponding column and row properties to the same values.
Privacy Considerations
No new privacy considerations have been reported on this specification.
Security Considerations
No new security considerations have been reported on this specification.
Conformance
Document conventions
Conformance requirements are expressed with a combination of descriptive assertions and RFC 2119 terminology. The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in the normative parts of this document are to be interpreted as described in RFC 2119. However, for readability, these words do not appear in all uppercase letters in this specification.
All of the text of this specification is normative except sections explicitly marked as non-normative, examples, and notes. [RFC2119]
Examples in this specification are introduced with the words “for example”
or are set apart from the normative text with class="example"
,
like this:
Informative notes begin with the word “Note” and are set apart from the
normative text with class="note"
, like this:
Note, this is an informative note.
Advisements are normative sections styled to evoke special attention and are
set apart from other normative text with <strong class="advisement">
, like
this: UAs MUST provide an accessible alternative.
Conformance classes
Conformance to this specification is defined for three conformance classes:
- style sheet
- A CSS style sheet.
- renderer
- A UA that interprets the semantics of a style sheet and renders documents that use them.
- authoring tool
- A UA that writes a style sheet.
A style sheet is conformant to this specification if all of its statements that use syntax defined in this module are valid according to the generic CSS grammar and the individual grammars of each feature defined in this module.
A renderer is conformant to this specification if, in addition to interpreting the style sheet as defined by the appropriate specifications, it supports all the features defined by this specification by parsing them correctly and rendering the document accordingly. However, the inability of a UA to correctly render a document due to limitations of the device does not make the UA non-conformant. (For example, a UA is not required to render color on a monochrome monitor.)
An authoring tool is conformant to this specification if it writes style sheets that are syntactically correct according to the generic CSS grammar and the individual grammars of each feature in this module, and meet all other conformance requirements of style sheets as described in this module.
Partial implementations
So that authors can exploit the forward-compatible parsing rules to assign fallback values, CSS renderers must treat as invalid (and ignore as appropriate) any at-rules, properties, property values, keywords, and other syntactic constructs for which they have no usable level of support. In particular, user agents must not selectively ignore unsupported component values and honor supported values in a single multi-value property declaration: if any value is considered invalid (as unsupported values must be), CSS requires that the entire declaration be ignored.
Implementations of Unstable and Proprietary Features
To avoid clashes with future stable CSS features, the CSSWG recommends following best practices for the implementation of unstable features and proprietary extensions to CSS.
Non-experimental implementations
Once a specification reaches the Candidate Recommendation stage, non-experimental implementations are possible, and implementors should release an unprefixed implementation of any CR-level feature they can demonstrate to be correctly implemented according to spec.
To establish and maintain the interoperability of CSS across implementations, the CSS Working Group requests that non-experimental CSS renderers submit an implementation report (and, if necessary, the testcases used for that implementation report) to the W3C before releasing an unprefixed implementation of any CSS features. Testcases submitted to W3C are subject to review and correction by the CSS Working Group.
Further information on submitting testcases and implementation reports can be found from on the CSS Working Group’s website at https://www.w3.org/Style/CSS/Test/. Questions should be directed to the public-css-testsuite@w3.org mailing list.
Index
Terms defined by this specification
- assign gap decoration values, in § 3.4
- assign gap decoration values in reverse, in § 3.4
- <auto-line-color-list>, in § 3.1
- <auto-line-style-list>, in § 3.2
- <auto-line-width-list>, in § 3.3
- auto repeater, in § 3.4
- <auto-repeat-line-color>, in § 3.1
- <auto-repeat-line-style>, in § 3.2
- <auto-repeat-line-width>, in § 3.3
- <color>, in § 3.1
- column-rule, in § 3.5
- column-rule-break, in § 2.2
- column-rule-color, in § 3.1
- column-rule-outset, in § 2.3
- column-rule-style, in § 3.2
- column-rule-width, in § 3.3
- compute the offset, in § 2.3
- crossing gap width, in § 2.3
- determine pairs of gap decoration endpoints, in § 2.2.1
- discontiguous, in § 2.2.1
- <gap-auto-repeat-rule>, in § 3.5
- <gap-auto-rule-list>, in § 3.5
- gap decoration, in § 2
- gap intersection point, in § 2.1
- <gap-repeat-rule>, in § 3.5
- <gap-rule>, in § 3.5
- <gap-rule-list>, in § 3.5
- <gap-rule-or-repeat>, in § 3.5
- integer repeater, in § 3.4
- intersection, in § 2.2
- <line-color-list>, in § 3.1
- <line-color-or-repeat>, in § 3.1
- <line-style-list>, in § 3.2
- <line-style-or-repeat>, in § 3.2
- <line-width-list>, in § 3.3
- <line-width-or-repeat>, in § 3.3
- none, in § 2.2
- repeat(), in § 3.4
- <repeat-line-color>, in § 3.1
- <repeat-line-style>, in § 3.2
- <repeat-line-width>, in § 3.3
- row-rule, in § 3.5
- row-rule-break, in § 2.2
- row-rule-color, in § 3.1
- row-rule-outset, in § 2.3
- row-rule-style, in § 3.2
- row-rule-width, in § 3.3
- rule, in § 3.6
- rule-break, in § 2.2
- rule-color, in § 3.6
- rule-outset, in § 2.3
- rule-paint-order, in § 2.4
- rule-style, in § 3.6
- rule-width, in § 3.6
- spanning-item, in § 2.2
Terms defined by reference
-
[CSS-ALIGN-3] defines the following terms:
- column-gap
- gutter
- row-gap
-
[CSS-BACKGROUNDS-3] defines the following terms:
- <line-style>
- <line-width>
- hidden
- none
-
[CSS-COLOR-5] defines the following terms:
- <color>
-
[CSS-FLEXBOX-1] defines the following terms:
- flex container
-
[CSS-GRID-2] defines the following terms:
- grid container
-
[CSS-GRID-3] defines the following terms:
- masonry container
-
[CSS-MULTICOL-2] defines the following terms:
- multicol container
-
[CSS-VALUES-4] defines the following terms:
- #
- *
- +
- ,
- <integer>
- <length-percentage>
- ?
- CSS-wide keywords
- px
- snap as a border width
- |
- ||
References
Normative References
- [CSS-ALIGN-3]
- Elika Etemad; Tab Atkins Jr.. CSS Box Alignment Module Level 3. 11 March 2025. WD. URL: https://www.w3.org/TR/css-align-3/
- [CSS-BACKGROUNDS-3]
- Elika Etemad; Brad Kemper. CSS Backgrounds and Borders Module Level 3. 11 March 2024. CRD. URL: https://www.w3.org/TR/css-backgrounds-3/
- [CSS-COLOR-5]
- Chris Lilley; et al. CSS Color Module Level 5. 18 March 2025. WD. URL: https://www.w3.org/TR/css-color-5/
- [CSS-FLEXBOX-1]
- Tab Atkins Jr.; et al. CSS Flexible Box Layout Module Level 1. 19 November 2018. CR. URL: https://www.w3.org/TR/css-flexbox-1/
- [CSS-GRID-1]
- Tab Atkins Jr.; et al. CSS Grid Layout Module Level 1. 26 March 2025. CRD. URL: https://www.w3.org/TR/css-grid-1/
- [CSS-GRID-2]
- Tab Atkins Jr.; et al. CSS Grid Layout Module Level 2. 26 March 2025. CRD. URL: https://www.w3.org/TR/css-grid-2/
- [CSS-GRID-3]
- Tab Atkins Jr.; et al. CSS Grid Layout Module Level 3. 7 February 2025. WD. URL: https://www.w3.org/TR/css-grid-3/
- [CSS-MULTICOL-1]
- Florian Rivoal; Rachel Andrew. CSS Multi-column Layout Module Level 1. 16 May 2024. CR. URL: https://www.w3.org/TR/css-multicol-1/
- [CSS-MULTICOL-2]
- Florian Rivoal; Rachel Andrew. CSS Multi-column Layout Module Level 2. 19 December 2024. FPWD. URL: https://www.w3.org/TR/css-multicol-2/
- [CSS-VALUES-3]
- Tab Atkins Jr.; Elika Etemad. CSS Values and Units Module Level 3. 22 March 2024. CRD. URL: https://www.w3.org/TR/css-values-3/
- [CSS-VALUES-4]
- Tab Atkins Jr.; Elika Etemad. CSS Values and Units Module Level 4. 12 March 2024. WD. URL: https://www.w3.org/TR/css-values-4/
- [CSS2]
- Bert Bos; et al. Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification. 7 June 2011. REC. URL: https://www.w3.org/TR/CSS2/
- [RFC2119]
- S. Bradner. Key words for use in RFCs to Indicate Requirement Levels. March 1997. Best Current Practice. URL: https://datatracker.ietf.org/doc/html/rfc2119
Property Index
Name | Value | Initial | Applies to | Inh. | %ages | Animation type | Canonical order | Computed value |
---|---|---|---|---|---|---|---|---|
column-rule | <gap-rule-list> | <gap-auto-rule-list> | see individual properties | see individual properties | see individual properties | see individual properties | see individual properties | per grammar | see individual properties |
column-rule-break | none | spanning-item | intersection | spanning-item | grid containers, flex containers, multicol containers, and masonry containers | no | n/a | discrete | per grammar | as specified |
column-rule-color | <line-color-list> | <auto-line-color-list> | currentcolor | grid containers, flex containers, multicol containers, and masonry containers | no | n/a | by computed value type | per grammar | as specified |
column-rule-outset | <length-percentage> | 50% | grid containers, flex containers, multicol containers, and masonry containers | no | refer to the crossing gap width | by computed value type | per grammar | as specified |
column-rule-style | <line-style-list> | <auto-line-style-list> | none | grid containers, flex containers, multicol containers, and masonry containers | no | n/a | discrete | per grammar | as specified |
column-rule-width | <line-width-list> | <auto-line-width-list> | medium | grid containers, flex containers, multicol containers, and masonry containers | no | n/a | by computed value type | per grammar | list of absolute lengths, snapped as a border width, or 0 under conditions described below |
row-rule | <gap-rule-list> | <gap-auto-rule-list> | see individual properties | see individual properties | see individual properties | see individual properties | see individual properties | per grammar | see individual properties |
row-rule-break | none | spanning-item | intersection | spanning-item | grid containers, flex containers, multicol containers, and masonry containers | no | n/a | discrete | per grammar | as specified |
row-rule-color | <line-color-list> | <auto-line-color-list> | currentcolor | grid containers, flex containers, multicol containers, and masonry containers | no | n/a | by computed value type | per grammar | as specified |
row-rule-outset | <length-percentage> | 50% | grid containers, flex containers, multicol containers, and masonry containers | no | refer to the crossing gap width | by computed value type | per grammar | as specified |
row-rule-style | <line-style-list> | <auto-line-style-list> | none | grid containers, flex containers, multicol containers, and masonry containers | no | n/a | discrete | per grammar | as specified |
row-rule-width | <line-width-list> | <auto-line-width-list> | medium | grid containers, flex containers, multicol containers, and masonry containers | no | n/a | by computed value type | per grammar | list of absolute lengths, snapped as a border width, or 0 under conditions described below |
rule | <'column-rule'> | see individual properties | Same as column-rule and row-rule | no | see individual properties | see individual properties | per grammar | see individual properties |
rule-break | <'column-rule-break'> | see individual properties | Same as column-rule-break and row-rule-break | see individual properties | see individual properties | see individual properties | per grammar | see individual properties |
rule-color | <'column-rule-color'> | see individual properties | Same as column-rule-color and row-rule-color | no | see individual properties | see individual properties | per grammar | see individual properties |
rule-outset | <'column-rule-outset'> | see individual properties | Same as column-rule-outset and row-rule-outset | see individual properties | see individual properties | see individual properties | per grammar | see individual properties |
rule-paint-order | row-over-column | column-over-row | row-over-column | grid containers, flex containers, and masonry containers | no | n/a | discrete | per grammar | as specified |
rule-style | <'column-rule-style'> | see individual properties | Same as column-rule-style and row-rule-style | no | see individual properties | see individual properties | per grammar | see individual properties |
rule-width | <'column-rule-width'> | see individual properties | Same as column-rule-width and row-rule-width | no | see individual properties | see individual properties | per grammar | see individual properties |