Skip to content

Commit 2a3d1e4

Browse files
kbabbittKevin Babbitt
andauthored
[css-borders-4] Adjust border-width zero value special case per WG resolution. #11494 (#13208)
Co-authored-by: Kevin Babbitt <kbabbitt@KBABBITT-MBP25.local>
1 parent ad0143c commit 2a3d1e4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

css-borders-4/Overview.bs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ Line Thickness: the 'border-width' properties</h3>
371371
Inherited: no
372372
Logical property group: border-width
373373
Percentages: N/A
374-
Computed value: absolute length, [=snapped as a border width=]; zero if the border style is ''border-style/none'' or ''border-style/hidden''
374+
Computed value: absolute length, [=snapped as a border width=]
375375
Animation Type: by computed value
376376
</pre>
377377

@@ -386,6 +386,11 @@ Line Thickness: the 'border-width' properties</h3>
386386
The <dfn>thin</dfn>, <dfn>medium</dfn>, and <dfn>thick</dfn> keywords
387387
are equivalent to ''1px'', ''3px'', and ''5px'', respectively.
388388

389+
The [=resolved value=] for the 'border-width' properties is the [=used value=].
390+
391+
If the 'border-style' corresponding to a given 'border-width' is ''border-style/none'' or ''border-style/hidden'',
392+
then the [=used value|used=] width is 0.
393+
389394
The [=flow-relative=] properties
390395
'border-block-start-width',
391396
'border-block-end-width',
@@ -3245,6 +3250,9 @@ First Public Working Draft</a> of 22 July 2025
32453250
* Renamed <css>normal</css> value of 'border-*-clip' properties to ''border-top-clip/none''
32463251
* Added new syntax for 'border-*-*-radius' longhands using a slash to separate horizontal and vertical radii
32473252
* Allowed a single <<length>> value for 'box-shadow-offset' to set both offsets to the same value
3253+
* Changed the special case of 'border-width' having a value of ''0'' when 'border-style' is ''border-style/none'' or ''border-style/hidden''
3254+
from a computed-value effect to a resolved-value effect.
3255+
(<a href="https://github.com/w3c/csswg-drafts/issues/11494">Issue 11494</a>)
32483256

32493257
<h3 class=no-num id="level-changes">
32503258
Additions since [[CSS3BG]]</h3>

0 commit comments

Comments
 (0)