CSS border-start-start-radius Property

The border-start-start-radius property rounds the corner where an element's logical block-start and inline-start edges meet.

Unlike physical corner properties such as border-top-left-radius, this logical property adapts to the element's writing-mode and direction. In horizontal left-to-right writing, it controls the top-left corner. In horizontal right-to-left writing, it controls the top-right corner.

The property accepts one radius for a circular corner or two radii for an elliptical corner. It is useful for layouts that must adapt to different languages and writing directions.

border-start-start-radius Syntax

The property accepts one or two non-negative CSS lengths or percentages.

selector {
  border-start-start-radius: 20px;
}

The general syntax is:

selector {
  border-start-start-radius: <length-percentage>{1,2};
}

One Radius

.panel {
  border-start-start-radius: 20px;
}

Creates a circular corner using equal horizontal and vertical radii.

Two Radii

.panel {
  border-start-start-radius: 40px 20px;
}

Creates an elliptical corner with a horizontal radius of 40 pixels and a vertical radius of 20 pixels.

Percentage Radius

.panel {
  border-start-start-radius: 25%;
}

Mixed Units

.panel {
  border-start-start-radius: 2rem 15%;
}

Zero Radius

.panel {
  border-start-start-radius: 0;
}

Calculated Radius

.panel {
  border-start-start-radius: clamp(8px, 3vw, 40px);
}

CSS-Wide Keywords

.inherited {
  border-start-start-radius: inherit;
}
.reset {
  border-start-start-radius: initial;
}
.unset {
  border-start-start-radius: unset;
}
.reverted {
  border-start-start-radius: revert;
}
.layer-reverted {
  border-start-start-radius: revert-layer;
}

Negative radii are invalid. Unlike the border-radius shorthand, this property uses a space rather than a slash to separate horizontal and vertical radii.

Property Values

The property accepts one or two length-percentage values or a CSS-wide keyword.

Value Description
<length> Sets a circular radius using a non-negative CSS length.
<percentage> Sets a radius relative to the element's border box dimensions.
<length-percentage> <length-percentage> Sets independent horizontal and vertical radii.
0 Removes rounding from the logical start-start corner.
inherit Inherits the computed radius values from the parent.
initial Resets the radius to 0.
unset Resets the radius to 0 because the property is not inherited.
revert Reverts the property according to cascade origin rules.
revert-layer Reverts the property according to cascade layer rules.

Property Characteristics

Characteristic Value
Initial value 0
Inherited No
Applies to Elements that support border-radius
Computed value Two absolute lengths or percentages
Animation type By computed value type (two length-percentage values)
Percentages Relative to the corresponding dimensions of the border box
Negative values Not accepted
Property type Logical corner longhand
Logical corner Block-start and inline-start

The physical corner controlled by the property changes with the element's writing mode and direction.

How It Works

The browser determines the corner where the logical block-start and inline-start edges meet, then applies the specified radius values.

Step 1: Create a Box

.panel {
  width: 240px;
  padding: 20px;
  background-color: #f3f8fc;
  border: 3px solid #1769aa;
}

Step 2: Apply the Radius

.panel {
  border-start-start-radius: 30px;
}

In horizontal left-to-right writing, the top-left corner becomes rounded.

Step 3: Change the Direction

.panel {
  direction: rtl;
  border-start-start-radius: 30px;
}

In horizontal right-to-left writing, the rounding moves to the top-right corner.

Step 4: Use an Elliptical Radius

.panel {
  border-start-start-radius: 60px 20px;
}

The corner receives a wider horizontal curve and a shorter vertical curve.

Step 5: Remove the Rounding

.panel {
  border-start-start-radius: 0;
}

The logical start-start corner becomes square.

Corner radii affect the painted shape of the element without changing its declared width or height.

Logical Corner Mapping

The start-start corner is where the block-start edge intersects the inline-start edge.

The physical location of these edges depends on writing-mode and direction.

Physical Corner Mapping

Writing Mode Direction Physical Corner
horizontal-tb ltr Top-left
horizontal-tb rtl Top-right
vertical-rl ltr Top-right
vertical-rl rtl Bottom-right
vertical-lr ltr Top-left
vertical-lr rtl Bottom-left

Horizontal Left-to-Right

.panel {
  writing-mode: horizontal-tb;
  direction: ltr;
  border-start-start-radius: 30px;
}

The top-left corner is rounded.

Horizontal Right-to-Left

.panel {
  writing-mode: horizontal-tb;
  direction: rtl;
  border-start-start-radius: 30px;
}

The top-right corner is rounded.

Vertical Right-to-Left Writing Mode

.panel {
  writing-mode: vertical-rl;
  direction: ltr;
  border-start-start-radius: 30px;
}

The top-right corner is rounded because the block-start edge is on the right and the inline-start edge is at the top.

Vertical Left-to-Right Writing Mode

.panel {
  writing-mode: vertical-lr;
  direction: ltr;
  border-start-start-radius: 30px;
}

The top-left corner is rounded.

Logical corner properties allow a component's shape to follow the flow of content instead of relying on fixed physical edges.

Circular Corners

A single radius value creates a circular curve with equal horizontal and vertical radii.

Small Radius

.panel {
  border-start-start-radius: 6px;
}

Medium Radius

.panel {
  border-start-start-radius: 20px;
}

Large Radius

.panel {
  border-start-start-radius: 50px;
}

Relative Radius

.panel {
  border-start-start-radius: 2rem;
}

Circular Corner With a Border

.panel {
  border: 4px solid #1769aa;
  border-start-start-radius: 30px;
}

The visible border follows the rounded corner.

Circular Corner Without a Border

.panel {
  background-color: #1769aa;
  border-start-start-radius: 30px;
}

The background follows the rounded border-box shape even without a visible border.

Use a single value when a uniform curve is needed at the logical start-start corner.

Elliptical Corners

Two values create an elliptical corner with separate horizontal and vertical radii.

Wide Horizontal Curve

.panel {
  border-start-start-radius: 60px 20px;
}

The horizontal radius is 60 pixels, while the vertical radius is 20 pixels.

Tall Vertical Curve

.panel {
  border-start-start-radius: 20px 60px;
}

Mixed Length Units

.panel {
  border-start-start-radius: 3rem 20px;
}

Mixed Length and Percentage

.panel {
  border-start-start-radius: 40px 25%;
}

Two Percentage Values

.panel {
  border-start-start-radius: 40% 20%;
}

Invalid Slash Syntax

.panel {
  border-start-start-radius: 40px / 20px;
}

This declaration is invalid. Separate the two values with a space instead.

Elliptical radii provide more control over the shape of a corner than a single circular radius.

Lengths and Percentages

The property supports non-negative CSS lengths, percentages, and compatible mathematical expressions.

Pixels

.panel {
  border-start-start-radius: 24px;
}

rem Units

.panel {
  border-start-start-radius: 1.5rem;
}

em Units

.panel {
  border-start-start-radius: 2em;
}

Percentages

.panel {
  border-start-start-radius: 25% 50%;
}

The horizontal percentage uses the border box width, while the vertical percentage uses the border box height.

Viewport Units

.panel {
  border-start-start-radius: 5vw;
}

Using calc()

.panel {
  border-start-start-radius: calc(10px + 1rem);
}

Using clamp()

.panel {
  border-start-start-radius: clamp(10px, 4vw, 50px);
}

Using min()

.panel {
  border-start-start-radius: min(40px, 10%);
}

Using max()

.panel {
  border-start-start-radius: max(12px, 1rem);
}

Invalid Negative Radius

.panel {
  border-start-start-radius: -10px;
}

Negative values are invalid and cause the declaration to be ignored.

Relative units and percentages can make rounded corners scale with typography or element dimensions.

Writing Mode and Direction

The writing-mode and direction properties determine the physical location of the logical start-start corner.

Left-to-Right Layout

.panel {
  writing-mode: horizontal-tb;
  direction: ltr;
  border-start-start-radius: 40px;
}

The top-left corner is rounded.

Right-to-Left Layout

.panel {
  writing-mode: horizontal-tb;
  direction: rtl;
  border-start-start-radius: 40px;
}

The top-right corner is rounded.

Vertical Right-to-Left Writing Mode

.panel {
  writing-mode: vertical-rl;
  direction: ltr;
  border-start-start-radius: 40px;
}

The top-right corner is rounded.

Vertical Left-to-Right Writing Mode

.panel {
  writing-mode: vertical-lr;
  direction: ltr;
  border-start-start-radius: 40px;
}

The top-left corner is rounded.

Using the dir Attribute

<div class="panel" dir="ltr">Left-to-right content</div>
<div class="panel" dir="rtl">Right-to-left content</div>
.panel {
  padding: 20px;
  border: 2px solid #1769aa;
  border-start-start-radius: 30px;
}

The same declaration rounds the top-left corner of the left-to-right element and the top-right corner of the right-to-left element.

For multilingual content, prefer the HTML dir attribute when declaring text direction. Logical CSS properties can then adapt to the resulting direction.

border-radius Interactions

The border-start-start-radius property is a logical counterpart to one of the physical corner radius properties.

Physical Radius

.panel {
  border-top-left-radius: 30px;
}

This always targets the physical top-left corner.

Logical Radius

.panel {
  border-start-start-radius: 30px;
}

This targets the corner where block-start and inline-start meet.

Combining With border-radius

.panel {
  border-radius: 10px;
  border-start-start-radius: 40px;
}

In horizontal left-to-right writing, all corners initially receive a 10-pixel radius, and the top-left corner is then changed to 40 pixels.

Later Shorthand Override

.panel {
  border-start-start-radius: 40px;
  border-radius: 10px;
}

In horizontal left-to-right writing, the later shorthand overrides the logical radius at the top-left corner when cascade priority is otherwise equal.

All Logical Corners

.panel {
  border-start-start-radius: 10px;
  border-start-end-radius: 20px;
  border-end-start-radius: 30px;
  border-end-end-radius: 40px;
}

These properties define the four logical corners independently.

Physical and Logical Conflicts

.panel {
  direction: ltr;
  border-top-left-radius: 15px;
  border-start-start-radius: 45px;
}

Both declarations target the top-left corner. The later declaration wins when cascade priority is otherwise equal.

When mixing physical and logical radius properties, review the declaration order and the element's writing direction.

Backgrounds and Clipping

Rounded corners affect the painted shape of an element's borders and backgrounds.

Rounded Background

.panel {
  background-color: #1769aa;
  border-start-start-radius: 40px;
}

Rounded Border

.panel {
  border: 5px solid #1769aa;
  border-start-start-radius: 40px;
}

Background Clip

.panel {
  border: 5px solid #1769aa;
  background-color: #dceefa;
  background-clip: padding-box;
  border-start-start-radius: 40px;
}

The background is clipped to the padding box rather than extending beneath the border.

Clipping Child Content

.panel {
  border-start-start-radius: 40px;
  overflow: hidden;
}

The rounded clipping edge prevents overflowing child content from extending beyond the corner.

Rounded Image Container

.image-panel {
  border-start-start-radius: 50px;
  overflow: hidden;
}
.image-panel img {
  display: block;
  width: 100%;
  height: auto;
}

The image is clipped to the rounded shape of its container.

Rounded borders and backgrounds follow the corner radius, but descendants may need additional clipping.

Radius Overlap

Large radii may need adjustment when neighboring corner curves exceed the available width or height.

Large Radius

.panel {
  width: 120px;
  height: 80px;
  border-start-start-radius: 100px;
}

The browser may reduce the effective radius to fit the element's border box.

Multiple Large Corners

.panel {
  width: 160px;
  height: 100px;
  border-radius: 80px;
}

The browser proportionally scales overlapping radii to fit the available dimensions.

Logical Radius With Other Corners

.panel {
  width: 180px;
  height: 100px;
  border-radius: 20px;
  border-start-start-radius: 100px;
}

The effective radii depend on the available space and the radii assigned to adjacent corners.

Percentage Radius

.panel {
  width: 200px;
  height: 100px;
  border-start-start-radius: 50%;
}

The horizontal and vertical radii are calculated from the width and height of the border box.

Browsers automatically scale radii when necessary to prevent overlapping corner curves.

Cascade and Overrides

The CSS cascade determines which radius applies when multiple declarations affect the same logical or physical corner.

Later Declaration

.panel {
  border-start-start-radius: 10px;
  border-start-start-radius: 30px;
}

The later 30-pixel value wins when cascade priority is otherwise equal.

Higher Specificity

.panel {
  border-start-start-radius: 10px;
}
.panel.featured {
  border-start-start-radius: 40px;
}

Physical Property Override

.panel {
  direction: ltr;
  border-start-start-radius: 40px;
  border-top-left-radius: 10px;
}

Both declarations target the top-left corner, so the later physical declaration wins at equal cascade priority.

Logical Property Override

.panel {
  direction: ltr;
  border-top-left-radius: 10px;
  border-start-start-radius: 40px;
}

The later logical declaration wins.

CSS Layers

@layer base, components;
@layer base {
  .panel {
    border-start-start-radius: 10px;
  }
}
@layer components {
  .panel {
    border-start-start-radius: 40px;
  }
}

For normal declarations, the later layer takes precedence.

Resetting the Radius

.panel {
  border-start-start-radius: 40px;
}
.panel.square {
  border-start-start-radius: 0;
}

Check both the cascade and logical-to-physical mapping when a radius appears to be overridden unexpectedly.

CSS Custom Properties

Custom properties make logical corner radius values easier to reuse and adjust.

Shared Radius

:root {
  --corner-radius: 24px;
}
.panel {
  border-start-start-radius: var(--corner-radius);
}

Fallback Value

.panel {
  border-start-start-radius: var(--corner-radius, 20px);
}

Component Variants

.card {
  --card-radius: 20px;
  border-start-start-radius: var(--card-radius);
}
.card.featured {
  --card-radius: 40px;
}
.card.compact {
  --card-radius: 8px;
}

Elliptical Radius Variables

:root {
  --radius-x: 50px;
  --radius-y: 20px;
}
.panel {
  border-start-start-radius: var(--radius-x) var(--radius-y);
}

Calculated Radius

:root {
  --base-radius: 12px;
}
.panel {
  border-start-start-radius: calc(var(--base-radius) * 2);
}

Responsive Custom Property

:root {
  --panel-radius: 40px;
}
@media (max-width: 600px) {
  :root {
    --panel-radius: 16px;
  }
}
.panel {
  border-start-start-radius: var(--panel-radius);
}

Custom properties help maintain consistent corner shapes across reusable components.

Interactive States

The logical start-start corner can change in response to hover, focus, and component states.

Hover State

.card {
  border-start-start-radius: 12px;
}
.card:hover {
  border-start-start-radius: 40px;
}

Focus State

.control {
  border-start-start-radius: 8px;
}
.control:focus-visible {
  border-start-start-radius: 24px;
  outline: 2px solid #1769aa;
  outline-offset: 2px;
}

Selected Component

.card {
  border-start-start-radius: 12px;
}
.card.is-selected {
  border-start-start-radius: 40px;
}

Current Navigation Item

.nav-link {
  border-start-start-radius: 0;
}
.nav-link[aria-current="page"] {
  border-start-start-radius: 20px;
}

Expanded Panel

.accordion-panel {
  border-start-start-radius: 12px;
}
.accordion-panel[open] {
  border-start-start-radius: 30px;
}

Corner shape changes can support interactive design, but important states should also use clear visual or semantic indicators.

Transitions and Animation

The property supports transitions and animations between compatible radius values.

Basic Transition

.panel {
  border-start-start-radius: 10px;
  transition: border-start-start-radius 0.3s ease;
}
.panel:hover {
  border-start-start-radius: 50px;
}

Elliptical Radius Transition

.panel {
  border-start-start-radius: 20px 10px;
  transition: border-start-start-radius 0.4s ease;
}
.panel:hover {
  border-start-start-radius: 60px 30px;
}

Keyframe Animation

@keyframes logical-corner-change {
  from {
    border-start-start-radius: 0;
  }
  to {
    border-start-start-radius: 60px;
  }
}
.animated-panel {
  animation: logical-corner-change 2s ease-in-out infinite alternate;
}

Multiple Radius Stops

@keyframes corner-shape-change {
  0% {
    border-start-start-radius: 10px;
  }
  50% {
    border-start-start-radius: 60px 20px;
  }
  100% {
    border-start-start-radius: 20px 60px;
  }
}
.animated-panel {
  animation: corner-shape-change 4s ease-in-out infinite;
}

Reduced Motion Preference

.panel {
  border-start-start-radius: 10px;
  transition: border-start-start-radius 0.3s ease;
}
.panel:hover {
  border-start-start-radius: 40px;
}
@media (prefers-reduced-motion: reduce) {
  .panel {
    transition: none;
  }
}

Animating the radius changes the corner shape without changing the element's declared width or height.

Responsive Design

Logical corner radii can adapt to viewport size, container dimensions, and writing direction.

Media Query

.panel {
  border-start-start-radius: 50px;
}
@media (max-width: 600px) {
  .panel {
    border-start-start-radius: 20px;
  }
}

Container Query

.panel-container {
  container-type: inline-size;
}
.panel {
  border-start-start-radius: 12px;
}
@container (min-width: 500px) {
  .panel {
    border-start-start-radius: 40px;
  }
}

Fluid Radius

.panel {
  border-start-start-radius: clamp(12px, 4vw, 60px);
}

Percentage Radius

.panel {
  border-start-start-radius: 25%;
}

Responsive Elliptical Radius

.panel {
  border-start-start-radius: 60px 30px;
}
@media (max-width: 600px) {
  .panel {
    border-start-start-radius: 24px 12px;
  }
}

Direction-Aware Component

.card {
  border-start-start-radius: 30px;
}

The same declaration automatically targets the appropriate physical corner when the writing direction changes.

Logical corner properties reduce the need for separate physical corner overrides in responsive and multilingual designs.

Practical Uses

The property is useful for cards, navigation elements, panels, labels, and other components that need direction-aware corner rounding.

Content Card

.content-card {
  padding: 20px;
  background-color: #f3f8fc;
  border: 2px solid #1769aa;
  border-start-start-radius: 40px;
}

Featured Panel

.featured-panel {
  padding: 24px;
  background-color: #1769aa;
  color: #ffffff;
  border-start-start-radius: 60px;
}

Navigation Tab

.nav-tab {
  display: inline-block;
  padding: 12px 20px;
  background-color: #dceefa;
  border-start-start-radius: 20px;
}

Notification Box

.notification {
  padding: 16px;
  border: 2px solid #1769aa;
  background-color: #f3f8fc;
  border-start-start-radius: 30px;
}

Image Card

.image-card {
  border-start-start-radius: 50px;
  overflow: hidden;
}
.image-card img {
  display: block;
  width: 100%;
  height: auto;
}

Direction-Aware Label

.label {
  display: inline-block;
  padding: 8px 14px;
  background-color: #1769aa;
  color: #ffffff;
  border-start-start-radius: 18px;
}

Asymmetric Component

.asymmetric-panel {
  border-start-start-radius: 40px;
  border-start-end-radius: 8px;
  border-end-start-radius: 8px;
  border-end-end-radius: 8px;
}

Logical corner radii are useful when a component's shape should follow the direction of its content rather than remain tied to a fixed physical corner.

border-start-start-radius Example

The following example compares the logical start-start corner across different writing modes and directions.

<div class="border-start-start-radius-demo">
  <div class="demo-box horizontal-ltr">horizontal-tb / ltr</div>
  <div class="demo-box horizontal-rtl">horizontal-tb / rtl</div>
  <div class="demo-box vertical-rl-ltr">vertical-rl / ltr</div>
  <div class="demo-box vertical-lr-ltr">vertical-lr / ltr</div>
  <div class="demo-box elliptical">60px 20px</div>
  <div class="demo-box square">0</div>
</div>
.border-start-start-radius-demo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.border-start-start-radius-demo .demo-box {
  box-sizing: border-box;
  min-height: 140px;
  padding: 20px;
  border: 3px solid #1769aa;
  background-color: #f3f8fc;
  color: #173b5e;
  font-weight: bold;
  border-start-start-radius: 45px;
}
.border-start-start-radius-demo .horizontal-ltr {
  writing-mode: horizontal-tb;
  direction: ltr;
}
.border-start-start-radius-demo .horizontal-rtl {
  writing-mode: horizontal-tb;
  direction: rtl;
}
.border-start-start-radius-demo .vertical-rl-ltr {
  writing-mode: vertical-rl;
  direction: ltr;
}
.border-start-start-radius-demo .vertical-lr-ltr {
  writing-mode: vertical-lr;
  direction: ltr;
}
.border-start-start-radius-demo .elliptical {
  border-start-start-radius: 60px 20px;
}
.border-start-start-radius-demo .square {
  border-start-start-radius: 0;
}
Browser Result
horizontal-tb / ltr
horizontal-tb / rtl
vertical-rl / ltr
vertical-lr / ltr
60px 20px
0

The first box rounds the top-left corner, while the second rounds the top-right corner. The vertical writing examples demonstrate how the physical corner follows the writing mode.

The elliptical example uses different horizontal and vertical radii. The final box removes the corner rounding.

Important Considerations

Keep the following points in mind when using border-start-start-radius:

  • Purpose: Rounds the logical block-start and inline-start corner.
  • Initial value: 0.
  • Inheritance: The property is not inherited.
  • Property type: Logical corner longhand.
  • One value: Creates a circular corner.
  • Two values: Creates an elliptical corner.
  • Accepted units: Non-negative CSS lengths and percentages.
  • Percentages: Horizontal and vertical radii use the corresponding border box dimensions.
  • Negative values: Not accepted.
  • Zero: Removes rounding from the logical corner.
  • Writing mode: Determines the physical block-start edge.
  • Direction: Determines the physical inline-start edge.
  • Physical mapping: Changes according to writing mode and direction.
  • Shorthand interaction: The border-radius shorthand can override the corresponding corner radius.
  • Backgrounds: Follow the rounded border-box shape.
  • Clipping: Child content may require additional clipping.
  • Overlapping radii: Browsers scale radii when necessary to prevent overlap.
  • Custom properties: Can store reusable radius values.
  • Responsive design: Supports media queries, container queries, and calculated values.
  • Animation: Supports interpolation between compatible radius values.
  • Browser support: Supported in current major browsers.

Use border-start-start-radius when the rounded corner should follow the beginning of the element's block and inline directions.

Browser Support

The border-start-start-radius property is supported in current versions of Chrome, Edge, Firefox, Safari, and other major browsers.

It belongs to the CSS Logical Properties and Values specification. Older browser versions may not support logical corner radius properties.

.panel {
  border-top-left-radius: 30px;
  border-start-start-radius: 30px;
}

The physical declaration provides a fallback for horizontal left-to-right layouts. Browsers that support the logical property use the second declaration.

For current compatibility details, visit Can I Use? and search for border-start-start-radius.

Specifications

The border-start-start-radius property is defined in the CSS Logical Properties and Values Module Level 1 specification.

CSS Logical Properties and Values Module Level 1

The specification defines logical corner mapping and the relationship between logical and physical corner radius properties.