Skip to content

Commit e938d7d

Browse files
authored
[css-borders-4] Added slash syntax for 'border-*-*-radius' longhands w3c#12861 (w3c#13111)
* [css-borders-4] Added slash syntax for 'border-*-*-radius' longhands
1 parent 13b033b commit e938d7d

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

css-borders-4/Overview.bs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ Corner Sizing: the 'border-*-*-radius' properties</h3>
841841

842842
<pre class="propdef">
843843
Name: border-top-left-radius, border-top-right-radius, border-bottom-right-radius, border-bottom-left-radius, border-start-start-radius, border-start-end-radius, border-end-start-radius, border-end-end-radius
844-
Value: <<length-percentage [0,&infin;]>>{1,2}
844+
Value: <<border-radius>>
845845
Initial: 0
846846
Applies to: all elements (but see prose)
847847
Inherited: no
@@ -851,6 +851,14 @@ Corner Sizing: the 'border-*-*-radius' properties</h3>
851851
Animation Type: by computed value
852852
</pre>
853853

854+
The radius is specified as a <<border-radius>> value, where
855+
856+
<pre class="prod">
857+
<dfn><<border-radius>></dfn> = <<slash-separated-border-radius-syntax>> | <<legacy-border-radius-syntax>>
858+
<dfn><<slash-separated-border-radius-syntax>></dfn> = <<length-percentage [0,&infin;]>> [ / <<length-percentage [0,&infin;]>> ]?
859+
<dfn><<legacy-border-radius-syntax>></dfn> = <<length-percentage [0,&infin;]>>{1,2}
860+
</pre>
861+
854862
The two <<length-percentage>> values of the 'border-*-radius' properties
855863
define the <dfn id="border-radii" lt="border radius">radii</dfn> of
856864
a quarter ellipse that defines the shape of the corner
@@ -863,6 +871,10 @@ Corner Sizing: the 'border-*-*-radius' properties</h3>
863871
whereas percentages for the vertical radius refer to the height of the [=border box=].
864872
Negative values are invalid.
865873

874+
Note: Authors <em>should</em> use the slash syntax, which is preferred for new content,
875+
but the legacy syntax (two values separated by whitespace)
876+
is supported for backwards compatibility.
877+
866878
<figure>
867879
<img src="images/corner.png" width="289" height="179"
868880
alt="Diagram of the inscribed ellipse"
@@ -3190,6 +3202,7 @@ First Public Working Draft</a> of 22 July 2025
31903202
* Added Web Platform Tests coverage
31913203
* incorporated full text of [[CSS3BG]] related to borders and shadows
31923204
* Renamed 'border-clip-*' properties to 'border-*-clip' and added logical longhands
3205+
* Added new syntax for 'border-*-*-radius' longhands using a slash to separate horizontal and vertical radii
31933206

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

0 commit comments

Comments
 (0)