From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/css/box-direction/index.html | 99 +++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 files/ja/web/css/box-direction/index.html (limited to 'files/ja/web/css/box-direction') diff --git a/files/ja/web/css/box-direction/index.html b/files/ja/web/css/box-direction/index.html new file mode 100644 index 0000000000..3e39f80bc6 --- /dev/null +++ b/files/ja/web/css/box-direction/index.html @@ -0,0 +1,99 @@ +--- +title: box-direction +slug: Web/CSS/box-direction +tags: + - CSS + - Non-standard + - Reference + - box-direction +translation_of: Web/CSS/box-direction +--- +
{{CSSRef}}{{Non-standard_header}}
+ +
+

これはもともと CSS Flexible Box Layout Module の草稿のプロパティでしたが、より新しい標準に置き換えられました。以前の標準であった box-directionflex-direction に置き換えられたので、 -moz-box-direction は XUL でのみ使用されます。現在の標準についての情報はフレックスボックスを参照してください。

+
+ +

CSSbox-direction プロパティは、ボックスが内容を通常通りに (上または左から) 配置するか、逆方向に (下または右から) 配置するかを指定します。

+ +
/* キーワード値 */
+box-direction: normal;
+box-direction: reverse;
+
+/* グローバル値 */
+box-direction: inherit;
+box-direction: initial;
+box-direction: unset;
+
+ +

{{CSSInfo}}

+ +

構文

+ +

box-direction プロパティは以下の列挙されたキーワード値のうちの一つで指定します。

+ +

+ +
+
normal
+
ボックスが内容を先頭 (左または上の端) から配置します。
+
reverse
+
ボックスが内容を末尾 (右または下の端) から配置します。
+
+ +

形式文法

+ +
{{CSSSyntax}}
+ +

+ +
.example {
+  /* bottom-to-top layout */
+  -moz-box-direction: reverse;      /* Mozilla */
+  -webkit-box-direction: reverse;   /* WebKit */
+  box-direction: reverse;           /* 仕様書通り */
+}
+
+ +

メモ

+ +

配置目的で start で示されるボックスの端は、ボックスの方向に依存します。

+ + + + + + + + + + + + +
Horizontalleft
Verticaltop
+ +

start と反対側の辺は end で示します。

+ +

書字方向が要素の dir 属性を使用して設定されている場合は、このスタイルは無視されます。

+ +

仕様書

+ + + +

ブラウザーの対応

+ + + +

{{Compat("css.properties.box-direction")}}

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf