Skip to content

Commit 72189dc

Browse files
authored
[css-backgrounds-4] Added border-*-radius shorthands (#7705)
Defined the physical shorthand properties `border-top-radius`, `border-right-radius`, `border-bottom-radius`, and `border-left-radius` and the logical shorthand properties `border-block-start-radius`, `border-block-end-radius`, `border-inline-start-radius`, `border-inline-end-radius`.
1 parent c792c00 commit 72189dc

File tree

1 file changed

+46
-2
lines changed

1 file changed

+46
-2
lines changed

css-backgrounds-4/Overview.bs

+46-2
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,52 @@ Painting Area: the 'background-clip' property</h3>
242242
<h2 id="corners">
243243
Corners</h2>
244244

245-
<h3 id=corner-sizing>
246-
Corner Sizing: the 'border-radius' property</h3>
245+
<h3 id="corner-sizing">
246+
Corner Sizing: the 'border-radius' and 'border-*-radius' shorthand properties</h3>
247+
248+
<h4 id="corner-sizing-side-shorthands">
249+
Sizing The Corners Of One Side:
250+
The 'border-top-radius', 'border-right-radius',
251+
'border-bottom-radius', 'border-left-radius',
252+
'border-block-start-radius', 'border-block-end-radius',
253+
'border-inline-start-radius', 'border-inline-end-radius' shorthands</h4>
254+
255+
<pre class=propdef>
256+
Name: border-top-radius, border-right-radius, border-bottom-radius, border-left-radius,
257+
border-block-start-radius, border-block-end-radius, border-inline-start-radius, border-inline-end-radius
258+
Value: <<length-percentage [0,&infin;]>>{1,2} [ / <<length-percentage [0,&infin;]>>{1,2} ]?
259+
Initial: 0
260+
Applies to: all elements (but see prose)
261+
Inherited: no
262+
Percentages: Refer to corresponding dimension of the <a>border box</a>.
263+
Computed value: see individual properties
264+
Animatable: see individual properties
265+
</pre>
266+
267+
<p>The 'border-*-radius' shorthands set the two 'border-*-*-radius'
268+
longhand properties of the related side. If values are given before
269+
and after the slash, then the values before the slash set the
270+
horizontal radius and the values after the slash set the vertical radius.
271+
If there is no slash, then the values set both radii equally.
272+
The two values for the radii are given in the order
273+
top-left, top-right for 'border-top-radius',
274+
top-right, bottom-right for 'border-right-radius',
275+
bottom-left, bottom-right for 'border-bottom-radius',
276+
top-left, bottom-left for 'border-left-radius',
277+
start-start, start-end for 'border-block-start-radius',
278+
end-start, end-end for 'border-block-end-radius'
279+
start-start, end-start for 'border-inline-start-radius',
280+
and start-end, end-end for 'border-inline-end-radius'.
281+
If the second value is omitted it is copied from the first.
282+
283+
<p class="issue">
284+
Should the physical values all be defined as left to right and top to bottom
285+
and the logical ones as start to end
286+
or should they follow the clockwise order of ''border-radius''?
287+
288+
<h4 id="corner-sizing-shorthand">
289+
Sizing All Corners At Once:
290+
The 'border-radius' shorthand</h4>
247291

248292
<pre class="propdef">
249293
Name: border-radius

0 commit comments

Comments
 (0)