Rule-visibility-items - CSS Property
Summary of characteristics of the rule-visibility-items property
normal | around | between | allnoramlDiscrète: during an animation, the rule-visibility-items property passes from one value to another without transition.Single: single value (no order).Syntax diagram of rule-visibility-items.
rule-visibility-items property.The syntax is the same for
column-rule-visibility-items and row-rule-visibility-itemsThe links in the diagram provide more details about the values.
Download the diagram in SVG.
Description of the rule-visibility-items property.
This page will be updated soon.
The property rule-visibility-items applies to not fully containers (flex-box, grid, etc.), meaning those that have spots without content.
On a grid, for example, this can be done by manually setting grid-row and grid-column.
The property determines whether the borders should be shown all the time, even when there’s no element next to the border, when there’s only one element, or when the border is between two elements, as shown in the example below:
allaroundbetweenValues for rule-visibility-items.
- column-rule-visibility-items: normal; row-rule-visibility-items: normal; rule-visibility-items: normal;
This is the default value of the property. On a grid container,
normalis equivalent toall. On a flex-box container, when the value is applied tocolumn-rule-visibility-itemsit’s equivalent tobetween, but applied torow-rule-visibility-itemsit’s equivalent toall.Grillerule-visibility-items:normal;Flex-boxrule-visibility-items:normal; - column-rule-visibility-items: around; row-rule-visibility-items: around; rule-visibility-items: around;
The line is drawn only if there is at least one element on either side of the line.
Grillerule-visibility-items:around;Flex-boxrule-visibility-items:around; - column-rule-visibility-items: between; row-rule-visibility-items: between; rule-visibility-items: between;
The line is only drawn if it's between two elements.
Grillerule-visibility-items:between;Flex-boxrule-visibility-items:between; - column-rule-visibility-items: all; row-rule-visibility-items: all; rule-visibility-items: all;
The lines are drawn in all cases, even if nothing is next to them.
Grillerule-visibility-items:all;Flex-boxrule-visibility-items:all; - rule-visibility-items: initial; (
noraml) rule-visibility-items: inherit; rule-visibility-items: revert; rule-visibility-items: revert-layer; rule-visibility-items: revert-rule; rule-visibility-items: unset;Links to the presentation of these different values:
initial,inherit,revert,revert-layer,revert-rule,unset.
⚠ Our examples, of course, only work on compatible browsers (see the table below). Examples on a flex-box container seem to not work on any browser.
Animation of the rule-visibility-items property.
The property rule-visibility-items can be animated in a discrete way (abrupt jump from one value to another), as shown in the example below.
Simulator.
The simulator lets you test the row-rule-visibility-items and column-rule-visibility-items properties on a grid container.
Browsers compatibility with rule-visibility-items.
For now (2026), only two major browsers handle the property rule-visibility-items: , , and a few mobile browsers.
rule-visibility-items property, which indicates when the row and column separators should be visible.row-rule-visibility-items property, which tells you when row separators should be visible.column-rule-visibility-items property, which tells you when column separators should be visible.rule-visibility-itemsproperty
row-rule-visibility-itemsproperty
column-rule-visibility-itemsproperty
Browsers on computers :
Mobile browsers :
Outdated or marginal browsers :

Internet Explorer

UC Browser pour Androïd

Opéra Mobile

QQ Browser

Baidu Browser

Safari

Safari sur IOS

Opéra

Samsung Internet

Chrome

Edge

Firefox

Chrome pour Androïd

Androïd Brower

Firefox pour Androïd

KaiOS Browser

Opéra mini
Historic of the rule-visibility-items property.
-
CSS Gap Decorations Module Level 1.
This module covers the rules that define gutters between columns in a multi-column container (grid, flex-box...). It extends these possibilities to gutters between elements arranged in multiple rows, allowing these features to be used on other types of containers. Several properties define how these gutters should be drawn.
Regardingrule-visibility-itemsFirst presentation of therule-visibility-itemsshort hand property.April 17, 2025Working Draft.
See also, about gap decorations.
The CSS Gap Decorations Module. groups together the properties that concern decorative borders, including those that were previously in the "CSS Multi-Columns"
module (like the ones whose names start with column-rule...). Here are these properties:



