files/en-us/web/css/reference/properties/border-end-start-radius/index.md
The border-end-start-radius CSS property defines a logical border radius on an element, which maps to a physical border radius depending on the element's {{cssxref("writing-mode")}}, {{cssxref("direction")}}, and {{cssxref("text-orientation")}}. This is useful when building styles to work regardless of the text orientation and writing mode.
This property affects the corner between the block-end and the inline-start sides of the element. For instance, in a horizontal-tb writing mode with ltr direction, it corresponds to the {{CSSxRef("border-bottom-left-radius")}} property.
{{InteractiveExample("CSS Demo: border-end-start-radius")}}
border-end-start-radius: 80px 80px;
border-end-start-radius: 250px 100px;
direction: rtl;
border-end-start-radius: 50%;
writing-mode: vertical-lr;
border-end-start-radius: 50%;
writing-mode: vertical-rl;
<section class="default-example" id="default-example">
<div class="transition-all" id="example-element">
This is a box with a bottom left rounded corner.
</div>
</section>
#example-element {
width: 80%;
height: 80%;
display: flex;
justify-content: center;
flex-direction: column;
background-color: #5b6dcd;
color: white;
padding: 10px;
}
/* <length> values */
/* With one value the corner will be a circle */
border-end-start-radius: 10px;
border-end-start-radius: 1em;
/* With two values the corner will be an ellipse */
border-end-start-radius: 1em 2em;
/* Global values */
border-end-start-radius: inherit;
border-end-start-radius: initial;
border-end-start-radius: revert;
border-end-start-radius: revert-layer;
border-end-start-radius: unset;
<length-percentage>
{{CSSInfo}}
{{CSSSyntax}}
<div>
<p class="exampleText">Example</p>
</div>
div {
background-color: rebeccapurple;
width: 120px;
height: 120px;
border-end-start-radius: 10px;
}
.exampleText {
writing-mode: vertical-rl;
padding: 10px;
background-color: white;
border-end-start-radius: 10px;
}
{{EmbedLiveSample("Border_radius_with_vertical_text", 140, 140)}}
{{Specifications}}
{{Compat}}