Skip to content

Commit 09f11f2

Browse files
authored
[css-backgrounds-3][css-multicol-4][css-ui-4][css-gaps-1] Adjust *-width zero value special cases per WG resolution. #11494 (#11913)
1 parent e21a6c9 commit 09f11f2

File tree

5 files changed

+38
-14
lines changed

5 files changed

+38
-14
lines changed

css-backgrounds-3/Overview.bs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Level: 3
88
Group: csswg
99
ED: https://drafts.csswg.org/css-backgrounds/
1010
TR: https://www.w3.org/TR/css-backgrounds-3/
11+
Previous Version: https://www.w3.org/TR/2024/CRD-css-backgrounds-3-20240311/
1112
Previous Version: https://www.w3.org/TR/2020/CR-css-backgrounds-3-20201222/
1213
Previous Version: https://www.w3.org/TR/2017/CR-css-backgrounds-3-20171017/
1314
Previous version: https://www.w3.org/TR/2014/CR-css3-background-20140909/
@@ -2079,7 +2080,7 @@ Line Thickness: the 'border-width' properties</h3>
20792080
Inherited: no
20802081
Logical property group: border-width
20812082
Percentages: N/A
2082-
Computed value: absolute length, [=snapped as a border width=]; zero if the border style is ''border-style/none'' or ''hidden''
2083+
Computed value: absolute length, [=snapped as a border width=]
20832084
Animation Type: by computed value
20842085
</pre>
20852086

@@ -2156,6 +2157,11 @@ Line Thickness: the 'border-width' properties</h3>
21562157
If there are four values
21572158
they apply to the top, right, bottom, and left, respectively.
21582159

2160+
The [=resolved value=] for the 'border-width' properties is the [=used value=].
2161+
2162+
If the 'border-style' corresponding to a given 'border-width' is ''border-style/none'' or ''hidden'',
2163+
then the [=used value|used=] width is 0.
2164+
21592165
Note: Although the [=initial value|initial=] width is ''medium'',
21602166
the [=initial value|initial=] style is ''border-style/none'';
21612167
therefore the [=used value|used=] initial width is 0.
@@ -3714,6 +3720,10 @@ Changes</h2>
37143720
Changes since the 11 March 2024 Candidate Recommendation Draft</h3>
37153721

37163722
<ul>
3723+
<li>Changed the special case of 'border-width' having a value of ''0'' when 'border-style' is ''border-style/none'' or ''border-style/hidden''
3724+
from a computed-value effect to a resolved-value effect.
3725+
(<a href="https://github.com/w3c/csswg-drafts/issues/11494">Issue 11494</a>)
3726+
37173727
<!-- to 5 Nov 2025 -->
37183728
<li>Altered the border-radius outset adjustment,
37193729
so the radius reduction factor in the

css-gaps-1/Overview.bs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ Gap decoration width: The 'column-rule-width' and 'row-rule-width' properties</h
806806
Initial: medium
807807
Applies to: <a>grid containers</a>, <a>flex containers</a>, <a>multicol containers</a>, and <a>masonry containers</a>
808808
Inherited: no
809-
Computed value: list of absolute lengths, <a>snapped as a border width</a>, or ''0'' under conditions described below
809+
Computed value: list of absolute lengths, <a>snapped as a border width</a>
810810
Animation type: repeatable list, see [[#interpolation-behavior]].
811811
</pre>
812812

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

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

829-
If the computed value of ''column-rule-style'' is ''border-style/none'' or ''border-style/hidden'',
830-
then the computed value of ''column-rule-width'' is ''0''.
831-
This behavior is for backwards compatibility with [[css-multicol-1#crw]].
832-
833-
Issue: Should the "force to 0" behavior apply when lists of values are involved?
834-
If so, how should this be handled with unaligned lists?
835-
836829
<wpt>
837830
grid/grid-gap-decorations-018.html
838831
grid/grid-gap-decorations-019.html
@@ -1221,4 +1214,6 @@ Changes since the <a href="https://www.w3.org/TR/2025/WD-css-gaps-1-20250417/">1
12211214
<li>Updated trailing gap decoration assignment to use values in forward order. (<a href="https://github.com/w3c/csswg-drafts/issues/12527">Issue 12527</a>)
12221215
<li>Specified the interpolation behavior for values which may contain repeaters.
12231216
(<a href="https://github.com/w3c/csswg-drafts/issues/12431">Issue 12431</a>)
1217+
<li>Removed the special case of 'column-rule-width' having a computed value of ''0'' when 'column-rule-style' is ''border-style/none'' or ''border-style/hidden''.
1218+
(<a href="https://github.com/w3c/csswg-drafts/issues/11494">Issue 11494</a>)
12241219
</ul>

css-multicol-1/Overview.bs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ WPT Path Prefix: /css/css-multicol/
1111
WPT Display: closed
1212
ED: https://drafts.csswg.org/css-multicol/
1313
TR: https://www.w3.org/TR/css-multicol-1/
14+
Previous Version: https://www.w3.org/TR/2024/CR-css-multicol-1-20240516/
1415
Previous Version: https://www.w3.org/TR/2021/CR-css-multicol-1-20211012/
1516
Previous Version: https://www.w3.org/TR/2021/WD-css-multicol-1-20210212/
1617
Previous Version: https://www.w3.org/TR/2019/WD-css-multicol-1-20191015/
@@ -1164,7 +1165,7 @@ Stacking Context</h3>
11641165
parsing/column-rule-style-invalid.html
11651166
</wpt>
11661167

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

11691170

11701171
<h3 id='crw'>The Width Of Column Rules: the 'column-rule-width' property</h3>
@@ -1176,7 +1177,7 @@ Stacking Context</h3>
11761177
Applies to: multicol containers
11771178
Inherited: no
11781179
Percentages: N/A
1179-
Computed value: absolute length, [=snapped as a border width=]; ''0'' if the column rule style is ''border-style/none'' or ''hidden''
1180+
Computed value: absolute length, [=snapped as a border width=]
11801181
Animation type: by computed value type
11811182
</pre>
11821183

@@ -2088,6 +2089,13 @@ Pagination and Overflow Outside Multicol Containers</h3>
20882089

20892090
This appendix is <em>informative</em>.
20902091

2092+
<h3 id="changes-from-20240516">Changes from the <a href="https://www.w3.org/TR/2024/CR-css-multicol-1-20240516/">Candidate Recommendation (CR) of 16 May 2024</a></h3>
2093+
2094+
<ul>
2095+
<li>Removed the special case of 'column-rule-width' having a computed value of ''0'' when 'column-rule-style' is ''border-style/none'' or ''border-style/hidden''.
2096+
(<a href="https://github.com/w3c/csswg-drafts/issues/11494">Issue 11494</a>)
2097+
</ul>
2098+
20912099
<h3 id="changes-from-20211012">Changes from the <a href="https://www.w3.org/TR/2021/CR-css-multicol-1-20211012/">Candidate Recommendation (CR) of 12 October 2021</a></h3>
20922100

20932101
<ul>

css-multicol-2/Overview.bs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Prepare for TR: no
88
Work Status: Exploring
99
ED: https://drafts.csswg.org/css-multicol-2/
1010
TR: https://www.w3.org/TR/css-multicol-2/
11+
Previous Version: https://www.w3.org/TR/2024/WD-css-multicol-2-20241219/
1112
Editor: Florian Rivoal, On behalf of Bloomberg, http://florian.rivoal.net/, w3cid 43241
1213
Editor: Rachel Andrew, Google, rachelandrew@google.com, w3cid 81117
1314
Former Editor: Håkon Wium Lie, Opera Software, howcome@opera.com, w3cid 9796
@@ -1342,7 +1343,7 @@ without caring about the <em>contents</em>.
13421343
parsing/column-rule-style-invalid.html
13431344
</wpt>
13441345

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

13471348
<h3 id='crw'>The Width Of Column Rules: the 'column-rule-width' property</h3>
13481349

@@ -1353,7 +1354,7 @@ without caring about the <em>contents</em>.
13531354
Applies to: multicol containers
13541355
Inherited: no
13551356
Percentages: N/A
1356-
Computed value: absolute length, [=snapped as a border width=]; ''0'' if the column rule style is ''border-style/none'' or ''hidden''
1357+
Computed value: absolute length, [=snapped as a border width=]
13571358
Animation type: by computed value type
13581359
</pre>
13591360

@@ -2294,6 +2295,13 @@ Pagination and Overflow Outside Multicol Containers</h3>
22942295

22952296
This appendix is <em>informative</em>.
22962297

2298+
<h3 id="">Changes from the <a href="https://www.w3.org/TR/2024/WD-css-multicol-2-20241219/">First Public Working Draft</a> of 19 December 2024</h3>
2299+
2300+
<ul>
2301+
<li>Removed the special case of 'column-rule-width' having a computed value of ''0'' when 'column-rule-style' is ''border-style/none'' or ''border-style/hidden''.
2302+
(<a href="https://github.com/w3c/csswg-drafts/issues/11494">Issue 11494</a>)
2303+
</ul>
2304+
22972305
<h3 id="changes-from-multicol1">Changes from the <a href="https://www.w3.org/TR/2024/CR-css-multicol-1-20240516/">Candidate Recommendation (CR) of CSS-MULTICOL-1 of 16 May 2024</a></h3>
22982306

22992307
<ul>

css-ui-4/Overview.bs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ Outline Thickness: the 'outline-width' property</h3>
461461
Applies to: all elements
462462
Inherited: no
463463
Percentages: N/A
464-
Computed value: absolute length, [=snapped as a border width=]; ''0'' if the outline style is ''border-style/none''.
464+
Computed value: absolute length, [=snapped as a border width=]
465465
Animation type: by computed value
466466
</pre>
467467

@@ -4153,6 +4153,9 @@ Changes from the <a href="https://www.w3.org/TR/2021/WD-css-ui-4-20210316/">16 M
41534153

41544154
<li>
41554155
Moved 'field-sizing' and 'input-security' properties to css-forms-1.
4156+
4157+
<li>Removed the special case of 'outline-width' having a computed value of ''0'' when 'outline-style' is ''border-style/none'' or ''border-style/hidden''.
4158+
(<a href="https://github.com/w3c/csswg-drafts/issues/11494">Issue 11494</a>)
41564159
</ul>
41574160

41584161

0 commit comments

Comments
 (0)