--- title: border-start-end-radius slug: Web/CSS/border-start-end-radius tags: - CSS - Experimental - Propriété - Propriété logique - Reference translation_of: Web/CSS/border-start-end-radius ---
La propriété border-start-end-radius définit le rayon de courbure de la bordure pour un angle d'un élément. Cette propriété logique correspond à une propriété physique de rayon de bordure selon la directionalité du texte et le mode d'écriture. Autrement dit, cette propriété concerne un angle différent selon les valeurs des propriétés {{cssxref("writing-mode")}}, {{cssxref("direction")}} et {{cssxref("text-orientation")}}.
/* Valeurs de longueur */ /* Type <length> */ /* Avec une valeur, le coin sera circulaire */ border-start-end-radius: 10px; border-start-end-radius: 1em; /* Avec deux valeurs, le coin sera une ellipse */ border-start-end-radius: 1em 2em; /* Valeurs globales */ border-start-end-radius: inherit; border-start-end-radius: initial; border-start-end-radius: unset;
Ainsi, avec un mode d'écriture horizontal-tb, cette propriété logique correspondra à la propriété physique {{CSSxRef("border-bottom-left-radius")}}.
<length-percentage>{{CSSSyntax}}
div {
background-color: rebeccapurple;
width: 120px;
height: 120px;
border-start-end-radius: 10px;
}
.texteExemple {
writing-mode: vertical-rl;
padding: 10px;
background-color: #fff;
border-start-end-radius: 10px;
}
<div> <p class="texteExemple">Exemple</p> </div>
{{EmbedLiveSample("Exemples", 140, 140)}}
| Spécification | État | Commentaires |
|---|---|---|
| {{SpecName("CSS Logical Properties", "#propdef-border-start-end-radius", "border-start-end-radius")}} | {{Spec2("CSS Logical Properties")}} | Définition initiale. |
{{CSSInfo}}
{{Compat("css.properties.border-start-end-radius")}}