aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/css/border-end-end-radius/index.html
blob: 2b479ee9234de65275972acc59eb403582e86c75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
---
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">/* &lt;length&gt; 値 */
/* 値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>&lt;length-percentage&gt;</code></dt>
 <dd>円の半径または楕円の長半径及び短半径を示します。絶対的な長さの場合は、 CSS の {{cssxref("&lt;length&gt;")}} データ型で表現することができます。水平軸のパーセント値はボックスの幅、垂直軸のパーセント値はボックスの高さに対する値です。負の数は無効です。</dd>
</dl>

<h2 id="Formal_definition" name="Formal_definition">公式定義</h2>

<p>{{CSSInfo}}</p>

<h2 id="Formal_syntax" name="Formal_syntax">形式文法</h2>

<pre class="syntaxbox notranslate">{{CSSSyntax}}</pre>

<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">&lt;div&gt;
  &lt;p class="exampleText"&gt;Example&lt;/p&gt;
&lt;/div&gt;
</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>

<div class="hidden">このページの互換性一覧表は構造化データから生成されています。データに協力していただけるのであれば、 <a class="external" href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> をチェックアウトしてプルリクエストを送信してください。</div>

<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>