From 60367cb41ff3291f2d5c1a03feeb26645c7cd336 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Tue, 16 Nov 2021 23:03:12 +0900 Subject: CSS 論理的プロパティのボックスモデルのプロパティを変換準備 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/ja/web/css/padding-block/index.html | 112 ------------------------------ files/ja/web/css/padding-block/index.md | 112 ++++++++++++++++++++++++++++++ 2 files changed, 112 insertions(+), 112 deletions(-) delete mode 100644 files/ja/web/css/padding-block/index.html create mode 100644 files/ja/web/css/padding-block/index.md (limited to 'files/ja/web/css/padding-block') diff --git a/files/ja/web/css/padding-block/index.html b/files/ja/web/css/padding-block/index.html deleted file mode 100644 index 521456f937..0000000000 --- a/files/ja/web/css/padding-block/index.html +++ /dev/null @@ -1,112 +0,0 @@ ---- -title: padding-block -slug: Web/CSS/padding-block -tags: - - CSS - - padding-block - - 'recipe:css-shorthand-property' -translation_of: Web/CSS/padding-block ---- -
{{CSSRef}}
- -

padding-blockCSS一括指定プロパティで、論理的なブロック方向の先頭と末尾のパディングを設定します。これは要素の書字方向やテキストの向きに応じて物理的なパディングに変換されます。

- -
/* <length> 値 */
-padding-block: 10px 20px;  /* 絶対的な長さ */
-padding-block: 1em 2em;   /* テキストの大きさに対する相対値 */
-padding-block: 10px; /* 先頭と末尾の両方を設定 */
-
-/* <percentage> 値 */
-padding-block: 5% 2%; /* 直近のブロックコンテナーの幅に対する相対値 */
-
-/* グローバル値 */
-padding-block: inherit;
-padding-block: initial;
-padding-block: unset;
-
- -

構成要素のプロパティ

- -

このプロパティは以下の CSS プロパティの一括指定です。

- - - -

構文

- -

- -

padding-block プロパティは、 {{CSSxRef("padding-left")}} プロパティと同じ値を取ります。

- -

解説

- -

これらの値は、 {{cssxref("padding-top")}} と {{cssxref("padding-bottom")}}、または {{cssxref("padding-right")}} と {{cssxref("padding-left")}} プロパティに、 {{cssxref("writing-mode")}}, {{cssxref("direction")}}, {{cssxref("text-orientation")}} で定義された値に従って対応します。

- -

公式定義

- -

{{cssinfo}}

- -

形式文法

- -{{csssyntax}} - -

- -

縦書きテキストにおけるブロック方向のパディングの設定

- -

HTML

- -
<div>
-  <p class="exampleText">Example text</p>
-</div>
-
- -

CSS

- -
div {
-  background-color: yellow;
-  width: 120px;
-  height: 120px;
-}
-
-.exampleText {
-  writing-mode: vertical-rl;
-  padding-block: 20px 40px;
-  background-color: #c8c800;
-}
- -

結果

- -

{{EmbedLiveSample("Setting_block_padding_for_vertical_text", 140, 140)}}

- -

仕様書

- - - - - - - - - - - - - - - - -
仕様書状態備考
{{SpecName("CSS Logical Properties", "#propdef-padding-block", "padding-block")}}{{Spec2("CSS Logical Properties")}}初回定義
- -

ブラウザーの互換性

- -

{{Compat("css.properties.padding-block")}}

- -

関連情報

- - diff --git a/files/ja/web/css/padding-block/index.md b/files/ja/web/css/padding-block/index.md new file mode 100644 index 0000000000..521456f937 --- /dev/null +++ b/files/ja/web/css/padding-block/index.md @@ -0,0 +1,112 @@ +--- +title: padding-block +slug: Web/CSS/padding-block +tags: + - CSS + - padding-block + - 'recipe:css-shorthand-property' +translation_of: Web/CSS/padding-block +--- +
{{CSSRef}}
+ +

padding-blockCSS一括指定プロパティで、論理的なブロック方向の先頭と末尾のパディングを設定します。これは要素の書字方向やテキストの向きに応じて物理的なパディングに変換されます。

+ +
/* <length> 値 */
+padding-block: 10px 20px;  /* 絶対的な長さ */
+padding-block: 1em 2em;   /* テキストの大きさに対する相対値 */
+padding-block: 10px; /* 先頭と末尾の両方を設定 */
+
+/* <percentage> 値 */
+padding-block: 5% 2%; /* 直近のブロックコンテナーの幅に対する相対値 */
+
+/* グローバル値 */
+padding-block: inherit;
+padding-block: initial;
+padding-block: unset;
+
+ +

構成要素のプロパティ

+ +

このプロパティは以下の CSS プロパティの一括指定です。

+ + + +

構文

+ +

+ +

padding-block プロパティは、 {{CSSxRef("padding-left")}} プロパティと同じ値を取ります。

+ +

解説

+ +

これらの値は、 {{cssxref("padding-top")}} と {{cssxref("padding-bottom")}}、または {{cssxref("padding-right")}} と {{cssxref("padding-left")}} プロパティに、 {{cssxref("writing-mode")}}, {{cssxref("direction")}}, {{cssxref("text-orientation")}} で定義された値に従って対応します。

+ +

公式定義

+ +

{{cssinfo}}

+ +

形式文法

+ +{{csssyntax}} + +

+ +

縦書きテキストにおけるブロック方向のパディングの設定

+ +

HTML

+ +
<div>
+  <p class="exampleText">Example text</p>
+</div>
+
+ +

CSS

+ +
div {
+  background-color: yellow;
+  width: 120px;
+  height: 120px;
+}
+
+.exampleText {
+  writing-mode: vertical-rl;
+  padding-block: 20px 40px;
+  background-color: #c8c800;
+}
+ +

結果

+ +

{{EmbedLiveSample("Setting_block_padding_for_vertical_text", 140, 140)}}

+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName("CSS Logical Properties", "#propdef-padding-block", "padding-block")}}{{Spec2("CSS Logical Properties")}}初回定義
+ +

ブラウザーの互換性

+ +

{{Compat("css.properties.padding-block")}}

+ +

関連情報

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