Skip to content

Commit 01d7b37

Browse files
committed
[css-backgrounds-3][css-multicol-4][css-ui-4][css-gaps-1] Adjust *-width zero value special cases per WG resolution. #11494
1 parent 983b11c commit 01d7b37

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

css-backgrounds-3/Overview.bs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2048,7 +2048,7 @@ Line Thickness: the 'border-width' properties</h3>
20482048
Inherited: no
20492049
Logical property group: border-width
20502050
Percentages: N/A
2051-
Computed value: absolute length, [=snapped as a border width=]; zero if the border style is ''border-style/none'' or ''hidden''
2051+
Computed value: absolute length, [=snapped as a border width=]
20522052
Animation Type: by computed value
20532053
</pre>
20542054

@@ -2125,6 +2125,11 @@ Line Thickness: the 'border-width' properties</h3>
21252125
If there are four values
21262126
they apply to the top, right, bottom, and left, respectively.
21272127

2128+
The [=resolved value=] for the 'border-width' properties is the [=used value=].
2129+
2130+
If the 'border-style' corresponding to a given 'border-width' is ''border-style/none'' or ''hidden'',
2131+
then the [=used value|used=] width is 0.
2132+
21282133
Note: Although the [=initial value|initial=] width is ''medium'',
21292134
the [=initial value|initial=] style is ''border-style/none'';
21302135
therefore the [=used value|used=] initial width is 0.

css-gaps-1/Overview.bs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ Gap decoration width: The 'column-rule-width' and 'row-rule-width' properties</h
708708
Initial: medium
709709
Applies to: <a>grid containers</a>, <a>flex containers</a>, <a>multicol containers</a>, and <a>masonry containers</a>
710710
Inherited: no
711-
Computed value: list of absolute lengths, <a>snapped as a border width</a>, or ''0'' under conditions described below
711+
Computed value: list of absolute lengths, <a>snapped as a border width</a>
712712
Animation type: by computed value type
713713
</pre>
714714

@@ -728,13 +728,6 @@ Gap decoration width: The 'column-rule-width' and 'row-rule-width' properties</h
728728

729729
This property sets the widths of <a>gap decorations</a>. Negative values are not allowed.
730730

731-
If the computed value of ''column-rule-style'' is ''border-style/none'' or ''border-style/hidden'',
732-
then the computed value of ''column-rule-width'' is ''0''.
733-
This behavior is for backwards compatibility with [[css-multicol-1#crw]].
734-
735-
Issue: Should the "force to 0" behavior apply when lists of values are involved?
736-
If so, how should this be handled with unaligned lists?
737-
738731
<h3 id="lists-repeat">
739732
Lists of values and the ''repeat-line-color/repeat()'' notation</h3>
740733

css-multicol-1/Overview.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,7 @@ Stacking Context</h3>
11661166
parsing/column-rule-style-invalid.html
11671167
</wpt>
11681168

1169-
The ''border-style/none'' and ''hidden'' values force the computed value of 'column-rule-width' to be ''0''.
1169+
The ''border-style/none'' and ''hidden'' values force the used value of 'column-rule-width' to be ''0''.
11701170

11711171

11721172
<h3 id='crw'>The Width Of Column Rules: the 'column-rule-width' property</h3>
@@ -1178,7 +1178,7 @@ Stacking Context</h3>
11781178
Applies to: multicol containers
11791179
Inherited: no
11801180
Percentages: N/A
1181-
Computed value: absolute length, [=snapped as a border width=]; ''0'' if the column rule style is ''border-style/none'' or ''hidden''
1181+
Computed value: absolute length, [=snapped as a border width=]
11821182
Animation type: by computed value type
11831183
</pre>
11841184

css-ui-4/Overview.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ Outline Thickness: the 'outline-width' property</h3>
379379
Applies to: all elements
380380
Inherited: no
381381
Percentages: N/A
382-
Computed value: absolute length, [=snapped as a border width=]; ''0'' if the outline style is ''border-style/none''.
382+
Computed value: absolute length, [=snapped as a border width=]
383383
Animation type: by computed value
384384
</pre>
385385

0 commit comments

Comments
 (0)