--- title: border-end-end-radius slug: Web/CSS/border-end-end-radius tags: - CSS - CSS Logical Property - CSS Property - Experimental - Reference - border-end-end-radius - 'recipe:css-property' - writing modes translation_of: Web/CSS/border-end-end-radius --- <p>{{CSSRef}}</p> <p><strong><code>border-end-end-radius</code></strong> は <a href="/ja/docs/Web/CSS">CSS</a> のプロパティで、要素の論理的な境界の半径を定義します。これは要素の {{cssxref("writing-mode")}}, {{cssxref("direction")}}, {{cssxref("text-orientation")}} に応じて、物理的な境界の半径に対応付けられます。これは<a href="/ja/docs/Web/CSS/text-orientation">テキストの方向</a>や<a href="/ja/docs/Web/CSS/CSS_Writing_Modes">書字方向</a>に依存せずにスタイルを構築する際に便利です。</p> <pre class="brush:css no-line-numbers notranslate">/* <length> 値 */ /* 値1つの場合は角を円にする */ border-end-end-radius: 10px; border-end-end-radius: 1em; /* 値2つの場合は角を楕円にする */ border-end-end-radius: 1em 2em; /* グローバル値 */ border-end-end-radius: inherit; border-end-end-radius: initial; border-end-end-radius: unset; </pre> <p>このプロパティは、要素の block-end と inline-end の間の角に影響します。すなわち、書字方向が <code>horizontal-tb</code> で <code>ltr</code> の方向であれば、 {{CSSxRef("border-bottom-right-radius")}} プロパティに対応します。</p> <h2 id="Syntax" name="Syntax">構文</h2> <h3 id="Values" name="Values">値</h3> <dl> <dt><code><length-percentage></code></dt> <dd>円の半径または楕円の長半径及び短半径を示します。絶対的な長さの場合は、 CSS の {{cssxref("<length>")}} データ型で表現することができます。水平軸のパーセント値はボックスの幅、垂直軸のパーセント値はボックスの高さに対する値です。負の数は無効です。</dd> </dl> <h2 id="Formal_definition" name="Formal_definition">公式定義</h2> <p>{{CSSInfo}}</p> <h2 id="Formal_syntax" name="Formal_syntax">形式文法</h2> {{CSSSyntax}} <h2 id="Examples" name="Examples">例</h2> <h3 id="Border_radius_with_vertical_text" name="Border_radius_with_vertical_text">縦書きの時の境界の丸め</h3> <h4 id="HTML">HTML</h4> <pre class="brush: html notranslate"><div> <p class="exampleText">Example</p> </div> </pre> <h4 id="CSS">CSS</h4> <pre class="brush: css notranslate">div { background-color: rebeccapurple; width: 120px; height: 120px; border-end-end-radius: 10px; } .exampleText { writing-mode: vertical-rl; padding: 10px; background-color: #fff; border-end-end-radius: 10px; }</pre> <h4 id="Results" name="Results">結果</h4> <p>{{EmbedLiveSample("Border_radius_with_vertical_text", 140, 140)}}</p> <h2 id="Specifications" name="Specifications">仕様書</h2> <table class="standard-table"> <thead> <tr> <th scope="col">仕様書</th> <th scope="col">状態</th> <th scope="col">備考</th> </tr> </thead> <tbody> <tr> <td>{{SpecName("CSS Logical Properties", "#propdef-border-end-end-radius", "border-end-end-radius")}}</td> <td>{{Spec2("CSS Logical Properties")}}</td> <td>Initial definition.</td> </tr> </tbody> </table> <h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2> <p>{{Compat("css.properties.border-end-end-radius")}}</p> <h2 id="See_also" name="See_also">関連情報</h2> <ul> <li>対応する物理プロパティ: {{CSSxRef("border-bottom-right-radius")}}</li> <li>{{CSSxRef("writing-mode")}}, {{CSSxRef("direction")}}, {{CSSxRef("text-orientation")}}</li> </ul>