CSS Reference ยท Container Queries and Logical Properties
The border-start-start-radius property
Reference for border-start-start-radius and its three siblings: logical corner rounding that follows writing mode and direction, with examples.
The border-start-start-radius property rounds the corner where the block-start edge meets the inline-start edge. In left-to-right horizontal text that is the top-left corner. In right-to-left text it is the top-right corner, and in vertical writing modes it moves to a different physical corner.
It is one of four logical corner properties. The first word names the block side and the second the inline side: border-start-start-radius, border-start-end-radius, border-end-start-radius and border-end-end-radius. They map to the physical border-top-left-radius family according to the element's writing mode and direction.
.tab { border-start-start-radius: 12px; border-start-end-radius: 12px; }
Try it
Syntax
border-start-start-radius: <length-percentage>{1,2};
- Initial value:
0 - Applies to: all elements (except table elements when
border-collapseiscollapse) - Inherited: no
- Percentages: relative to the border box (width for the horizontal radius, height for the vertical one)
- Animatable: yes
- Computed value: two absolute lengths or percentages
Values
| Value | Description |
|---|---|
| One value | A circular corner with that radius. |
| Two values | An elliptical corner: the first is the radius along the inline axis, the second along the block axis. |
<length> |
A fixed radius such as 12px. Negative values are invalid. |
<percentage> |
A share of the border box; 50% on all corners makes a circle or ellipse. |
Usage notes
- Which corner is it? First word: block side (start is top in horizontal text). Second word: inline side (start is left in left-to-right text). So start-start is top-left, start-end top-right, end-start bottom-left, end-end bottom-right, for ltr horizontal text.
- Mirroring. Switching
dir="rtl"flips the inline sides, so asymmetric designs such as chat bubbles mirror without extra CSS. - No logical shorthand. There is no logical equivalent of
border-radius; the shorthand stays physical. Set the four logical longhands one by one. - Overlapping radii. If adjacent radii add up to more than the box side, browsers scale all radii down proportionally.
- Mixing with
border-radius. The logical and physical properties set the same corner, so whichever comes later (at equal specificity) wins.
Browser support
Supported in all current browsers.
Related
border-radiusโ the physical shorthandborder-blockandborder-inline- Logical properties
- Lessons: Border radius, Writing modes