Skip to content

Commit 9a90410

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 0f509ac commit 9a90410

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

css-backgrounds-3/Overview.bs

+6-1
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

+1-8
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ Gap decoration width: The 'column-rule-width' and 'row-rule-width' properties {#
594594
Initial: medium
595595
Applies to: <a>grid containers</a>, <a>flex containers</a>, <a>multicol containers</a>, and <a>masonry containers</a>
596596
Inherited: no
597-
Computed value: list of absolute lengths, <a>snapped as a border width</a>, or ''0'' under conditions described below
597+
Computed value: list of absolute lengths, <a>snapped as a border width</a>
598598
Animation type: by computed value type
599599
</pre>
600600

@@ -614,13 +614,6 @@ Gap decoration width: The 'column-rule-width' and 'row-rule-width' properties {#
614614

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

617-
If the computed value of ''column-rule-style'' is ''border-style/none'' or ''border-style/hidden'',
618-
then the computed value of ''column-rule-width'' is ''0''.
619-
This behavior is for backwards compatibility with [[css-multicol-1#crw]].
620-
621-
Issue: Should the "force to 0" behavior apply when lists of values are involved?
622-
If so, how should this be handled with unaligned lists?
623-
624617
Lists of values and the ''repeat-line-color/repeat()'' notation {#lists-repeat}
625618
-------------------------------------------------------------------------------
626619

css-multicol-1/Overview.bs

+2-2
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

+1-1
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)