From b2dc12a85f5414464594621c500e1c13ee8dab8e Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Tue, 16 Nov 2021 22:24:44 +0900 Subject: CSS 論理的プロパティの寸法のプロパティを変換準備 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/ja/web/css/block-size/index.html | 105 --------------- files/ja/web/css/block-size/index.md | 105 +++++++++++++++ files/ja/web/css/inline-size/index.html | 104 --------------- files/ja/web/css/inline-size/index.md | 104 +++++++++++++++ files/ja/web/css/max-block-size/index.html | 191 ---------------------------- files/ja/web/css/max-block-size/index.md | 191 ++++++++++++++++++++++++++++ files/ja/web/css/max-inline-size/index.html | 111 ---------------- files/ja/web/css/max-inline-size/index.md | 111 ++++++++++++++++ files/ja/web/css/min-block-size/index.html | 105 --------------- files/ja/web/css/min-block-size/index.md | 105 +++++++++++++++ files/ja/web/css/min-inline-size/index.html | 106 --------------- files/ja/web/css/min-inline-size/index.md | 106 +++++++++++++++ 12 files changed, 722 insertions(+), 722 deletions(-) delete mode 100644 files/ja/web/css/block-size/index.html create mode 100644 files/ja/web/css/block-size/index.md delete mode 100644 files/ja/web/css/inline-size/index.html create mode 100644 files/ja/web/css/inline-size/index.md delete mode 100644 files/ja/web/css/max-block-size/index.html create mode 100644 files/ja/web/css/max-block-size/index.md delete mode 100644 files/ja/web/css/max-inline-size/index.html create mode 100644 files/ja/web/css/max-inline-size/index.md delete mode 100644 files/ja/web/css/min-block-size/index.html create mode 100644 files/ja/web/css/min-block-size/index.md delete mode 100644 files/ja/web/css/min-inline-size/index.html create mode 100644 files/ja/web/css/min-inline-size/index.md diff --git a/files/ja/web/css/block-size/index.html b/files/ja/web/css/block-size/index.html deleted file mode 100644 index d73e9cdf72..0000000000 --- a/files/ja/web/css/block-size/index.html +++ /dev/null @@ -1,105 +0,0 @@ ---- -title: block-size -slug: Web/CSS/block-size -tags: - - CSS - - CSS Logical Property - - CSS Property - - Experimental - - Reference - - 'recipe:css-property' -translation_of: Web/CSS/block-size ---- -
{{CSSRef}}
- -

block-sizeCSS のプロパティで、書字方向に応じた要素ブロックの水平または垂直方向の寸法を定義します。これは {{cssxref("width")}} または {{cssxref("height")}} プロパティに相当し、 {{cssxref("writing-mode")}} の値によって変わります。

- -

書字方向が垂直方向であった場合、 block-size の値は要素の幅に対応し、水平方向であった場合は要素の高さに対応します。関連プロパティの {{cssxref("inline-size")}} が要素のもう一方の寸法を定義します。

- -
{{EmbedInteractiveExample("pages/css/block-size.html")}}
- - - -

構文

- -
/* <length> 値 */
-block-size: 300px;
-block-size: 25em;
-
-/* <percentage> 値 */
-block-size: 75%;
-
-/* キーワード値 */
-block-size: max-content;
-block-size: min-content;
-block-size: fit-content(20em);
-block-size: auto;
-
-/* グローバル値 */
-block-size: inherit;
-block-size: initial;
-block-size: unset;
-
- -

- -

block-size プロパティは、{{cssxref("width")}} や {{cssxref("height")}} プロパティと同じ値を取ります。

- -

公式定義

- -

{{cssinfo}}

- -

形式文法

- -{{csssyntax}} - -

- -

縦書き時のブロック方向の寸法

- -

HTML

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

CSS

- -
.exampleText {
-  writing-mode: vertical-rl;
-  background-color: yellow;
-  block-size: 200px;
-}
- -

Result

- -

{{EmbedLiveSample("Block_size_with_vertical_text")}}

- -

仕様書

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

ブラウザーの互換性

- -

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

- -

関連情報

- - diff --git a/files/ja/web/css/block-size/index.md b/files/ja/web/css/block-size/index.md new file mode 100644 index 0000000000..d73e9cdf72 --- /dev/null +++ b/files/ja/web/css/block-size/index.md @@ -0,0 +1,105 @@ +--- +title: block-size +slug: Web/CSS/block-size +tags: + - CSS + - CSS Logical Property + - CSS Property + - Experimental + - Reference + - 'recipe:css-property' +translation_of: Web/CSS/block-size +--- +
{{CSSRef}}
+ +

block-sizeCSS のプロパティで、書字方向に応じた要素ブロックの水平または垂直方向の寸法を定義します。これは {{cssxref("width")}} または {{cssxref("height")}} プロパティに相当し、 {{cssxref("writing-mode")}} の値によって変わります。

+ +

書字方向が垂直方向であった場合、 block-size の値は要素の幅に対応し、水平方向であった場合は要素の高さに対応します。関連プロパティの {{cssxref("inline-size")}} が要素のもう一方の寸法を定義します。

+ +
{{EmbedInteractiveExample("pages/css/block-size.html")}}
+ + + +

構文

+ +
/* <length> 値 */
+block-size: 300px;
+block-size: 25em;
+
+/* <percentage> 値 */
+block-size: 75%;
+
+/* キーワード値 */
+block-size: max-content;
+block-size: min-content;
+block-size: fit-content(20em);
+block-size: auto;
+
+/* グローバル値 */
+block-size: inherit;
+block-size: initial;
+block-size: unset;
+
+ +

+ +

block-size プロパティは、{{cssxref("width")}} や {{cssxref("height")}} プロパティと同じ値を取ります。

+ +

公式定義

+ +

{{cssinfo}}

+ +

形式文法

+ +{{csssyntax}} + +

+ +

縦書き時のブロック方向の寸法

+ +

HTML

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

CSS

+ +
.exampleText {
+  writing-mode: vertical-rl;
+  background-color: yellow;
+  block-size: 200px;
+}
+ +

Result

+ +

{{EmbedLiveSample("Block_size_with_vertical_text")}}

+ +

仕様書

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

ブラウザーの互換性

+ +

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

+ +

関連情報

+ + diff --git a/files/ja/web/css/inline-size/index.html b/files/ja/web/css/inline-size/index.html deleted file mode 100644 index 75634e9a7b..0000000000 --- a/files/ja/web/css/inline-size/index.html +++ /dev/null @@ -1,104 +0,0 @@ ---- -title: inline-size -slug: Web/CSS/inline-size -tags: - - CSS - - CSS Logical Property - - CSS Property - - Reference - - 'recipe:css-property' -translation_of: Web/CSS/inline-size ---- -
{{CSSRef}}
- -

inline-sizeCSS のプロパティで、書字方向に応じた要素ブロックの水平または垂直方向の寸法を定義します。これは {{cssxref("width")}} または {{cssxref("height")}} プロパティに相当し、 {{cssxref("writing-mode")}} の値によって変わります。

- -

書字方向が垂直方向であった場合、 inline-size の値は要素の高さに対応し、水平方向であった場合は要素の幅に対応します。関連プロパティの {{cssxref("block-size")}} が要素のもう一方の寸法を定義します。

- -
{{EmbedInteractiveExample("pages/css/inline-size.html")}}
- - - -

構文

- -
/* <length> 値 */
-inline-size: 300px;
-inline-size: 25em;
-
-/* <percentage> 値 */
-inline-size: 75%;
-
-/* キーワード値 */
-inline-size: max-content;
-inline-size: min-content;
-inline-size: fit-content(20em);
-inline-size: auto;
-
-/* グローバル値 */
-inline-size: inherit;
-inline-size: initial;
-inline-size: unset;
-
- -

- -

inline-size プロパティは、{{cssxref("width")}} や {{cssxref("height")}} プロパティと同じ値を取ります。

- -

公式定義

- -

{{cssinfo}}

- -

形式文法

- -{{csssyntax}} - -

- -

インライン方向の寸法をピクセル単位で設定

- -

HTML

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

CSS

- -
.exampleText {
-  writing-mode: vertical-rl;
-  background-color: yellow;
-  inline-size: 110px;
-}
- -

Result

- -

{{EmbedLiveSample("Setting_inline_size_in_pixels")}}

- -

仕様書

- - - - - - - - - - - - - - - - -
仕様書状態備考
{{SpecName("CSS Logical Properties", "#logical-dimension-properties", "inline-size")}}{{Spec2("CSS Logical Properties")}}初回定義
- -

ブラウザーの互換性

- -

{{Compat("css.properties.inline-size")}}

- -

関連情報

- - diff --git a/files/ja/web/css/inline-size/index.md b/files/ja/web/css/inline-size/index.md new file mode 100644 index 0000000000..75634e9a7b --- /dev/null +++ b/files/ja/web/css/inline-size/index.md @@ -0,0 +1,104 @@ +--- +title: inline-size +slug: Web/CSS/inline-size +tags: + - CSS + - CSS Logical Property + - CSS Property + - Reference + - 'recipe:css-property' +translation_of: Web/CSS/inline-size +--- +
{{CSSRef}}
+ +

inline-sizeCSS のプロパティで、書字方向に応じた要素ブロックの水平または垂直方向の寸法を定義します。これは {{cssxref("width")}} または {{cssxref("height")}} プロパティに相当し、 {{cssxref("writing-mode")}} の値によって変わります。

+ +

書字方向が垂直方向であった場合、 inline-size の値は要素の高さに対応し、水平方向であった場合は要素の幅に対応します。関連プロパティの {{cssxref("block-size")}} が要素のもう一方の寸法を定義します。

+ +
{{EmbedInteractiveExample("pages/css/inline-size.html")}}
+ + + +

構文

+ +
/* <length> 値 */
+inline-size: 300px;
+inline-size: 25em;
+
+/* <percentage> 値 */
+inline-size: 75%;
+
+/* キーワード値 */
+inline-size: max-content;
+inline-size: min-content;
+inline-size: fit-content(20em);
+inline-size: auto;
+
+/* グローバル値 */
+inline-size: inherit;
+inline-size: initial;
+inline-size: unset;
+
+ +

+ +

inline-size プロパティは、{{cssxref("width")}} や {{cssxref("height")}} プロパティと同じ値を取ります。

+ +

公式定義

+ +

{{cssinfo}}

+ +

形式文法

+ +{{csssyntax}} + +

+ +

インライン方向の寸法をピクセル単位で設定

+ +

HTML

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

CSS

+ +
.exampleText {
+  writing-mode: vertical-rl;
+  background-color: yellow;
+  inline-size: 110px;
+}
+ +

Result

+ +

{{EmbedLiveSample("Setting_inline_size_in_pixels")}}

+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName("CSS Logical Properties", "#logical-dimension-properties", "inline-size")}}{{Spec2("CSS Logical Properties")}}初回定義
+ +

ブラウザーの互換性

+ +

{{Compat("css.properties.inline-size")}}

+ +

関連情報

+ + diff --git a/files/ja/web/css/max-block-size/index.html b/files/ja/web/css/max-block-size/index.html deleted file mode 100644 index 4fd2ab7123..0000000000 --- a/files/ja/web/css/max-block-size/index.html +++ /dev/null @@ -1,191 +0,0 @@ ---- -title: max-block-size -slug: Web/CSS/max-block-size -tags: - - CSS - - CSS Logical Property - - CSS Property - - Experimental - - Layout - - Maximum Height - - Maximum Width - - Reference - - height - - max-block-size - - 'recipe:css-property' - - size - - width -translation_of: Web/CSS/max-block-size ---- -
{{CSSRef}}
- -

max-block-sizeCSS のプロパティで、 {{cssxref("writing-mode")}} で指定された書字方向とは逆の向きの要素の最大寸法を指定します。すなわち、書字方向が水平 (横書き) であれば、 max-block-size は {{cssxref("max-height")}} と等価になります。書字方向が垂直 (縦書き) であれば、 max-block-size は {{cssxref("max-width")}} と同じになります。

- -

もう一方の方向の最大長は、 {{cssxref("max-inline-size")}} プロパティを使用して指定します。

- -

max-width は常に水平方向の寸法に使われ、 max-height は常に垂直方向の寸法に使われるため、このプロパティはテキストコンテンツの寸法に基づいて寸法を設定する必要がある場合、書字方向を意識して指定する必要がある場合に便利です。

- -

ふつう max-height または max-width を使用する場面でいつでも、代わりに max-block-size をコンテンツの最大の「高さ」を設定するために使用し (これは垂直の値ではない可能性がありますが)、 max-inline-sizeをコンテンツの最大の「幅」を設定するために使用してください (これが横書きではなく縦書きである場合であっても)。様々な書字方向を表す{{SectionOnPage("/ja/docs/Web/CSS/writing-mode", "例")}}をご覧ください。

- -
{{EmbedInteractiveExample("pages/css/max-block-size.html")}}
- - - -

構文

- -
/* <length> 値 */
-max-block-size: 300px;
-max-block-size: 25em;
-
-/* <percentage> 値 */
-max-block-size: 75%;
-
-/* キーワード値 */
-max-block-size: auto;
-max-block-size: max-content;
-max-block-size: min-content;
-max-block-size: fit-content(20em);
-
-/* グローバル値 */
-max-block-size: inherit;
-max-block-size: initial;
-max-block-size: unset;
-
- -

- -

max-block-size プロパティの値は、 {{cssxref("max-width")}} および {{cssxref("max-height")}} プロパティで有効なすべての値を取ることができます。

- -

{{page("/ja/docs/Web/CSS/max-width", "Values")}}

- -

書字方向が方向にどう影響するのか

- -

writing-mode の値は次のように max-block-size から max-width または max-height への対応付けに影響します。

- - - - - - - - - - - - - - - - - - -
writing-mode の値max-block-size が等価になるもの
horizontal-tb, lr {{deprecated_inline}}, lr-tb {{deprecated_inline}}, rl {{deprecated_inline}}, rb {{deprecated_inline}}, rb-rl {{deprecated_inline}}{{cssxref("max-height")}}
vertical-rl, vertical-lr, sideways-rl {{experimental_inline}}, sideways-lr {{experimental_inline}}, tb {{deprecated_inline}}, tb-rl {{deprecated_inline}}{{cssxref("max-width")}}
- -
-

writing-mode の値のうち sideways-lr および sideways-rl は設計プロセスの後期に CSS Writing Modes Level 3 仕様書から削除されました。これらは Level 4 で復活する可能性があります。

-
- -
-

書字方向の lr, lr-tb, rl, rb, rb-tl は {{Glossary("HTML")}} のコンテキストでは許可されなくなりました。 {{Glossary("SVG")}} 1.x コンテキストでのみ利用できる可能性があります。

-
- -

公式定義

- -

{{cssinfo}}

- -

形式文法

- -{{csssyntax}} - -

- -

Setting max-block-size with horizontal and vertical text

- -

この例では、同じテキスト ({{interwiki("wikipedia", "en:Herman Melville", "Herman Melville")}} の小説 {{interwiki("wikipedia", "en:Moby-Dick", "Moby-Dick")}} の冒頭部分) が horizontal-tb および vertical-rl の両方の書字方向で表示されます。

- -

二つのボックスついてそれ以外の部分はすべて、 {{cssxref("max-block-size")}} に使われている値を含めて同じです。

- -

HTML

- -

この HTML では、単純に二つの {{HTMLElement("div")}} ブロックを作成し、それぞれの {{cssxref("writing-mode")}} を horizontal および vertical クラスを用いて設定しています。両方のボックスで standard-box クラスを共有しており、こちらで単純に色、パディング、それぞれの max-block-size の値を設定しています。

- -
<p>Writing mode <code>horizontal-tb</code> (the default):</p>
-<div class="standard-box horizontal">
-  Call me Ishmael. Some years ago—never mind how
-  long precisely—having little or no money in my
-  purse, and nothing particular to interest me on
-  shore, I thought I would sail about a little and see
-  the watery part of the world. It is a way I have of
-  driving off the spleen and regulating the
-  circulation.
-</div>
-
-<p>Writing mode <code>vertical-rl</code>:</p>
-<div class="standard-box vertical">
-  Call me Ishmael. Some years ago—never mind how
-  long precisely—having little or no money in my
-  purse, and nothing particular to interest me on
-  shore, I thought I would sail about a little and see
-  the watery part of the world. It is a way I have of
-  driving off the spleen and regulating the
-  circulation.
-</div>
- -

CSS

- -

この CSS では3つのクラスを定義しています。最初は standard-box で、両方のボックスに適用され、上にあるものです。これはブロックの最小および最大の寸法、フォントの大きさ、などを指定します。

- -

その後にくるクラス horizontal および vertical は、ボックスに {{cssxref("writing-mode")}} プロパティを追加し、値を使われるクラスに応じて horizontal-tb または vertical-rl に設定します。

- -
.standard-box {
-  padding: 4px;
-  background-color: #abcdef;
-  color: #000;
-  font: 16px "Open Sans", "Helvetica", "Arial", sans-serif;
-  max-block-size: 160px;
-  min-block-size: 100px;
-}
-
-.horizontal {
-  writing-mode: horizontal-tb;
-}
-
-.vertical {
-  writing-mode: vertical-rl;
-}
-
- -

結果

- -

{{EmbedLiveSample("Setting_max-block-size_with_horizontal_and_vertical_text", 600, 850)}}

- -

仕様書

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

ブラウザーの互換性

- -

{{Compat("css.properties.max-block-size")}}

- -

関連情報

- - diff --git a/files/ja/web/css/max-block-size/index.md b/files/ja/web/css/max-block-size/index.md new file mode 100644 index 0000000000..4fd2ab7123 --- /dev/null +++ b/files/ja/web/css/max-block-size/index.md @@ -0,0 +1,191 @@ +--- +title: max-block-size +slug: Web/CSS/max-block-size +tags: + - CSS + - CSS Logical Property + - CSS Property + - Experimental + - Layout + - Maximum Height + - Maximum Width + - Reference + - height + - max-block-size + - 'recipe:css-property' + - size + - width +translation_of: Web/CSS/max-block-size +--- +
{{CSSRef}}
+ +

max-block-sizeCSS のプロパティで、 {{cssxref("writing-mode")}} で指定された書字方向とは逆の向きの要素の最大寸法を指定します。すなわち、書字方向が水平 (横書き) であれば、 max-block-size は {{cssxref("max-height")}} と等価になります。書字方向が垂直 (縦書き) であれば、 max-block-size は {{cssxref("max-width")}} と同じになります。

+ +

もう一方の方向の最大長は、 {{cssxref("max-inline-size")}} プロパティを使用して指定します。

+ +

max-width は常に水平方向の寸法に使われ、 max-height は常に垂直方向の寸法に使われるため、このプロパティはテキストコンテンツの寸法に基づいて寸法を設定する必要がある場合、書字方向を意識して指定する必要がある場合に便利です。

+ +

ふつう max-height または max-width を使用する場面でいつでも、代わりに max-block-size をコンテンツの最大の「高さ」を設定するために使用し (これは垂直の値ではない可能性がありますが)、 max-inline-sizeをコンテンツの最大の「幅」を設定するために使用してください (これが横書きではなく縦書きである場合であっても)。様々な書字方向を表す{{SectionOnPage("/ja/docs/Web/CSS/writing-mode", "例")}}をご覧ください。

+ +
{{EmbedInteractiveExample("pages/css/max-block-size.html")}}
+ + + +

構文

+ +
/* <length> 値 */
+max-block-size: 300px;
+max-block-size: 25em;
+
+/* <percentage> 値 */
+max-block-size: 75%;
+
+/* キーワード値 */
+max-block-size: auto;
+max-block-size: max-content;
+max-block-size: min-content;
+max-block-size: fit-content(20em);
+
+/* グローバル値 */
+max-block-size: inherit;
+max-block-size: initial;
+max-block-size: unset;
+
+ +

+ +

max-block-size プロパティの値は、 {{cssxref("max-width")}} および {{cssxref("max-height")}} プロパティで有効なすべての値を取ることができます。

+ +

{{page("/ja/docs/Web/CSS/max-width", "Values")}}

+ +

書字方向が方向にどう影響するのか

+ +

writing-mode の値は次のように max-block-size から max-width または max-height への対応付けに影響します。

+ + + + + + + + + + + + + + + + + + +
writing-mode の値max-block-size が等価になるもの
horizontal-tb, lr {{deprecated_inline}}, lr-tb {{deprecated_inline}}, rl {{deprecated_inline}}, rb {{deprecated_inline}}, rb-rl {{deprecated_inline}}{{cssxref("max-height")}}
vertical-rl, vertical-lr, sideways-rl {{experimental_inline}}, sideways-lr {{experimental_inline}}, tb {{deprecated_inline}}, tb-rl {{deprecated_inline}}{{cssxref("max-width")}}
+ +
+

writing-mode の値のうち sideways-lr および sideways-rl は設計プロセスの後期に CSS Writing Modes Level 3 仕様書から削除されました。これらは Level 4 で復活する可能性があります。

+
+ +
+

書字方向の lr, lr-tb, rl, rb, rb-tl は {{Glossary("HTML")}} のコンテキストでは許可されなくなりました。 {{Glossary("SVG")}} 1.x コンテキストでのみ利用できる可能性があります。

+
+ +

公式定義

+ +

{{cssinfo}}

+ +

形式文法

+ +{{csssyntax}} + +

+ +

Setting max-block-size with horizontal and vertical text

+ +

この例では、同じテキスト ({{interwiki("wikipedia", "en:Herman Melville", "Herman Melville")}} の小説 {{interwiki("wikipedia", "en:Moby-Dick", "Moby-Dick")}} の冒頭部分) が horizontal-tb および vertical-rl の両方の書字方向で表示されます。

+ +

二つのボックスついてそれ以外の部分はすべて、 {{cssxref("max-block-size")}} に使われている値を含めて同じです。

+ +

HTML

+ +

この HTML では、単純に二つの {{HTMLElement("div")}} ブロックを作成し、それぞれの {{cssxref("writing-mode")}} を horizontal および vertical クラスを用いて設定しています。両方のボックスで standard-box クラスを共有しており、こちらで単純に色、パディング、それぞれの max-block-size の値を設定しています。

+ +
<p>Writing mode <code>horizontal-tb</code> (the default):</p>
+<div class="standard-box horizontal">
+  Call me Ishmael. Some years ago—never mind how
+  long precisely—having little or no money in my
+  purse, and nothing particular to interest me on
+  shore, I thought I would sail about a little and see
+  the watery part of the world. It is a way I have of
+  driving off the spleen and regulating the
+  circulation.
+</div>
+
+<p>Writing mode <code>vertical-rl</code>:</p>
+<div class="standard-box vertical">
+  Call me Ishmael. Some years ago—never mind how
+  long precisely—having little or no money in my
+  purse, and nothing particular to interest me on
+  shore, I thought I would sail about a little and see
+  the watery part of the world. It is a way I have of
+  driving off the spleen and regulating the
+  circulation.
+</div>
+ +

CSS

+ +

この CSS では3つのクラスを定義しています。最初は standard-box で、両方のボックスに適用され、上にあるものです。これはブロックの最小および最大の寸法、フォントの大きさ、などを指定します。

+ +

その後にくるクラス horizontal および vertical は、ボックスに {{cssxref("writing-mode")}} プロパティを追加し、値を使われるクラスに応じて horizontal-tb または vertical-rl に設定します。

+ +
.standard-box {
+  padding: 4px;
+  background-color: #abcdef;
+  color: #000;
+  font: 16px "Open Sans", "Helvetica", "Arial", sans-serif;
+  max-block-size: 160px;
+  min-block-size: 100px;
+}
+
+.horizontal {
+  writing-mode: horizontal-tb;
+}
+
+.vertical {
+  writing-mode: vertical-rl;
+}
+
+ +

結果

+ +

{{EmbedLiveSample("Setting_max-block-size_with_horizontal_and_vertical_text", 600, 850)}}

+ +

仕様書

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

ブラウザーの互換性

+ +

{{Compat("css.properties.max-block-size")}}

+ +

関連情報

+ + diff --git a/files/ja/web/css/max-inline-size/index.html b/files/ja/web/css/max-inline-size/index.html deleted file mode 100644 index 05189f14c3..0000000000 --- a/files/ja/web/css/max-inline-size/index.html +++ /dev/null @@ -1,111 +0,0 @@ ---- -title: max-inline-size -slug: Web/CSS/max-inline-size -tags: - - CSS - - CSS Logical Properties - - CSS Logical Property - - CSS Property - - Element size - - Experimental - - Reference - - Text Direction - - Writing Mode - - max-inline-size - - 'recipe:css-property' -translation_of: Web/CSS/max-inline-size ---- -
{{CSSRef}}
- -

max-inline-sizeCSS のプロパティで、書字方向に応じて要素ブロックの水平または垂直方向の最大の寸法を定義します。これは {{cssxref("max-width")}} または {{cssxref("max-height")}} のどちらかのプロパティと、 {{cssxref("writing-mode")}} の値に応じて対応します。

- -

書字方向が垂直方向であった場合、 max-inline-size の値は要素の最大の高さに対応します。そうでなければ、要素の最大幅に対応します。関連プロパティとして、 {{cssxref("max-block-size")}} が要素のもう一方の寸法を定義します。

- -
{{EmbedInteractiveExample("pages/css/max-inline-size.html")}}
- - - -

構文

- -
/* <length> 値 */
-max-inline-size: 300px;
-max-inline-size: 25em;
-
-/* <percentage> 値 */
-max-inline-size: 75%;
-
-/* キーワード値 */
-max-inline-size: auto;
-max-inline-size: max-content;
-max-inline-size: min-content;
-max-inline-size: fit-content(20em);
-
-/* グローバル値 */
-max-inline-size: inherit;
-max-inline-size: initial;
-max-inline-size: unset;
-
- -

- -

max-inline-size プロパティは {{cssxref("max-width")}} および {{cssxref("max-height")}} の各プロパティと同じ値を取ります。

- -

公式定義

- -

{{cssinfo}}

- -

形式文法

- -{{csssyntax}} - -

- -

インライン方向の最大寸法をピクセル単位で設定

- -

HTML

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

CSS

- -
.exampleText {
-  writing-mode: vertical-rl;
-  background-color: yellow;
-  block-size: 100%;
-  max-inline-size: 200px;
-}
- -

結果

- -

{{EmbedLiveSample("Setting_maximum_inline_size_in_pixels")}}

- -

仕様書

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

ブラウザーの互換性

- -

{{Compat("css.properties.max-inline-size")}}

- -

関連情報

- - diff --git a/files/ja/web/css/max-inline-size/index.md b/files/ja/web/css/max-inline-size/index.md new file mode 100644 index 0000000000..05189f14c3 --- /dev/null +++ b/files/ja/web/css/max-inline-size/index.md @@ -0,0 +1,111 @@ +--- +title: max-inline-size +slug: Web/CSS/max-inline-size +tags: + - CSS + - CSS Logical Properties + - CSS Logical Property + - CSS Property + - Element size + - Experimental + - Reference + - Text Direction + - Writing Mode + - max-inline-size + - 'recipe:css-property' +translation_of: Web/CSS/max-inline-size +--- +
{{CSSRef}}
+ +

max-inline-sizeCSS のプロパティで、書字方向に応じて要素ブロックの水平または垂直方向の最大の寸法を定義します。これは {{cssxref("max-width")}} または {{cssxref("max-height")}} のどちらかのプロパティと、 {{cssxref("writing-mode")}} の値に応じて対応します。

+ +

書字方向が垂直方向であった場合、 max-inline-size の値は要素の最大の高さに対応します。そうでなければ、要素の最大幅に対応します。関連プロパティとして、 {{cssxref("max-block-size")}} が要素のもう一方の寸法を定義します。

+ +
{{EmbedInteractiveExample("pages/css/max-inline-size.html")}}
+ + + +

構文

+ +
/* <length> 値 */
+max-inline-size: 300px;
+max-inline-size: 25em;
+
+/* <percentage> 値 */
+max-inline-size: 75%;
+
+/* キーワード値 */
+max-inline-size: auto;
+max-inline-size: max-content;
+max-inline-size: min-content;
+max-inline-size: fit-content(20em);
+
+/* グローバル値 */
+max-inline-size: inherit;
+max-inline-size: initial;
+max-inline-size: unset;
+
+ +

+ +

max-inline-size プロパティは {{cssxref("max-width")}} および {{cssxref("max-height")}} の各プロパティと同じ値を取ります。

+ +

公式定義

+ +

{{cssinfo}}

+ +

形式文法

+ +{{csssyntax}} + +

+ +

インライン方向の最大寸法をピクセル単位で設定

+ +

HTML

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

CSS

+ +
.exampleText {
+  writing-mode: vertical-rl;
+  background-color: yellow;
+  block-size: 100%;
+  max-inline-size: 200px;
+}
+ +

結果

+ +

{{EmbedLiveSample("Setting_maximum_inline_size_in_pixels")}}

+ +

仕様書

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

ブラウザーの互換性

+ +

{{Compat("css.properties.max-inline-size")}}

+ +

関連情報

+ + diff --git a/files/ja/web/css/min-block-size/index.html b/files/ja/web/css/min-block-size/index.html deleted file mode 100644 index 5e27a77b8b..0000000000 --- a/files/ja/web/css/min-block-size/index.html +++ /dev/null @@ -1,105 +0,0 @@ ---- -title: min-block-size -slug: Web/CSS/min-block-size -tags: - - CSS - - CSS Logical Property - - CSS Property - - Experimental - - Reference - - min-block-size - - 'recipe:css-property' -translation_of: Web/CSS/min-block-size ---- -
{{CSSRef}}
- -

min-block-sizeCSS のプロパティで、書字方向に応じて要素ブロックの水平または垂直方向の最小の寸法を定義します。これは {{cssxref("min-width")}} または {{cssxref("min-height")}} のどちらかのプロパティと、 {{cssxref("writing-mode")}} の値に応じて対応します。

- -

書字方向が垂直方向であった場合、 min-block-size の値は要素の最小幅に対応します。そうでなければ、要素の最小の高さに対応します。関連プロパティの {{cssxref("min-inline-size")}} が要素のもう一方の寸法を定義します。

- -
{{EmbedInteractiveExample("pages/css/min-block-size.html")}}
- - - -

構文

- -
/* <length> 値 */
-min-block-size: 100px;
-min-block-size: 5em;
-
-/* <percentage> 値 */
-min-block-size: 10%;
-
-/* キーワード値 */
-min-block-size: max-content;
-min-block-size: min-content;
-min-block-size: fit-content(20em);
-
-/* グローバル値 */
-min-block-size: inherit;
-min-block-size: initial;
-min-block-size: unset;
-
- -

- -

min-block-size プロパティは {{cssxref("min-width")}} および {{cssxref("min-height")}} の各プロパティと同じ値を取ります。

- -

公式定義

- -

{{cssinfo}}

- -

形式文法

- -{{csssyntax}} - -

- -

縦書きでブロック方向の最小寸法を設定

- -

HTML

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

CSS

- -
.exampleText {
-  writing-mode: vertical-rl;
-  background-color: yellow;
-  min-block-size: 200px;
-}
- -

結果

- -

{{EmbedLiveSample("Setting_minimum_block_size_for_vertical_text")}}

- -

仕様書

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

ブラウザーの互換性

- -

{{Compat("css.properties.min-block-size")}}

- -

関連情報

- - diff --git a/files/ja/web/css/min-block-size/index.md b/files/ja/web/css/min-block-size/index.md new file mode 100644 index 0000000000..5e27a77b8b --- /dev/null +++ b/files/ja/web/css/min-block-size/index.md @@ -0,0 +1,105 @@ +--- +title: min-block-size +slug: Web/CSS/min-block-size +tags: + - CSS + - CSS Logical Property + - CSS Property + - Experimental + - Reference + - min-block-size + - 'recipe:css-property' +translation_of: Web/CSS/min-block-size +--- +
{{CSSRef}}
+ +

min-block-sizeCSS のプロパティで、書字方向に応じて要素ブロックの水平または垂直方向の最小の寸法を定義します。これは {{cssxref("min-width")}} または {{cssxref("min-height")}} のどちらかのプロパティと、 {{cssxref("writing-mode")}} の値に応じて対応します。

+ +

書字方向が垂直方向であった場合、 min-block-size の値は要素の最小幅に対応します。そうでなければ、要素の最小の高さに対応します。関連プロパティの {{cssxref("min-inline-size")}} が要素のもう一方の寸法を定義します。

+ +
{{EmbedInteractiveExample("pages/css/min-block-size.html")}}
+ + + +

構文

+ +
/* <length> 値 */
+min-block-size: 100px;
+min-block-size: 5em;
+
+/* <percentage> 値 */
+min-block-size: 10%;
+
+/* キーワード値 */
+min-block-size: max-content;
+min-block-size: min-content;
+min-block-size: fit-content(20em);
+
+/* グローバル値 */
+min-block-size: inherit;
+min-block-size: initial;
+min-block-size: unset;
+
+ +

+ +

min-block-size プロパティは {{cssxref("min-width")}} および {{cssxref("min-height")}} の各プロパティと同じ値を取ります。

+ +

公式定義

+ +

{{cssinfo}}

+ +

形式文法

+ +{{csssyntax}} + +

+ +

縦書きでブロック方向の最小寸法を設定

+ +

HTML

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

CSS

+ +
.exampleText {
+  writing-mode: vertical-rl;
+  background-color: yellow;
+  min-block-size: 200px;
+}
+ +

結果

+ +

{{EmbedLiveSample("Setting_minimum_block_size_for_vertical_text")}}

+ +

仕様書

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

ブラウザーの互換性

+ +

{{Compat("css.properties.min-block-size")}}

+ +

関連情報

+ + diff --git a/files/ja/web/css/min-inline-size/index.html b/files/ja/web/css/min-inline-size/index.html deleted file mode 100644 index d14c3fef6d..0000000000 --- a/files/ja/web/css/min-inline-size/index.html +++ /dev/null @@ -1,106 +0,0 @@ ---- -title: min-inline-size -slug: Web/CSS/min-inline-size -tags: - - CSS - - CSS Logical Property - - CSS Property - - Experimental - - Reference - - min-inline-size - - 'recipe:css-property' -translation_of: Web/CSS/min-inline-size ---- -
{{CSSRef}}
- -

min-inline-sizeCSS のプロパティで、書字方向に応じて要素ブロックの水平または垂直方向の最小の寸法を定義します。これは {{cssxref("min-width")}} または {{cssxref("min-height")}} のどちらかのプロパティと、 {{cssxref("writing-mode")}} の値に応じて対応します。

- -

書字方向が垂直方向であった場合、 min-inline-size の値は要素の最小の高さに対応します。そうでなければ、要素の最小幅に対応します。関連プロパティの {{cssxref("min-block-size")}} が要素のもう一方の寸法を定義します。

- -
{{EmbedInteractiveExample("pages/css/min-inline-size.html")}}
- - - -

構文

- -
/* <length> 値 */
-min-inline-size: 100px;
-min-inline-size: 5em;
-
-/* <percentage> 値 */
-min-inline-size: 10%;
-
-/* キーワード値 */
-min-inline-size: max-content;
-min-inline-size: min-content;
-min-inline-size: fit-content(20em);
-
-/* グローバル値 */
-min-inline-size: inherit;
-min-inline-size: initial;
-min-inline-size: unset;
-
- -

- -

min-inline-size プロパティは {{cssxref("min-width")}} および {{cssxref("min-height")}} の各プロパティと同じ値を取ります。

- -

公式定義

- -

{{cssinfo}}

- -

形式文法

- -{{csssyntax}} - -

- -

縦書きでインライン方向の最小寸法を設定

- -

HTML

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

CSS

- -
.exampleText {
-  writing-mode: vertical-rl;
-  background-color: yellow;
-  block-size: 5%;
-  min-inline-size: 200px;
-}
- -

結果

- -

{{EmbedLiveSample("Setting_minimum_inline_size_for_vertical_text")}}

- -

仕様書

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

ブラウザーの互換性

- -

{{Compat("css.properties.min-inline-size")}}

- -

関連情報

- - diff --git a/files/ja/web/css/min-inline-size/index.md b/files/ja/web/css/min-inline-size/index.md new file mode 100644 index 0000000000..d14c3fef6d --- /dev/null +++ b/files/ja/web/css/min-inline-size/index.md @@ -0,0 +1,106 @@ +--- +title: min-inline-size +slug: Web/CSS/min-inline-size +tags: + - CSS + - CSS Logical Property + - CSS Property + - Experimental + - Reference + - min-inline-size + - 'recipe:css-property' +translation_of: Web/CSS/min-inline-size +--- +
{{CSSRef}}
+ +

min-inline-sizeCSS のプロパティで、書字方向に応じて要素ブロックの水平または垂直方向の最小の寸法を定義します。これは {{cssxref("min-width")}} または {{cssxref("min-height")}} のどちらかのプロパティと、 {{cssxref("writing-mode")}} の値に応じて対応します。

+ +

書字方向が垂直方向であった場合、 min-inline-size の値は要素の最小の高さに対応します。そうでなければ、要素の最小幅に対応します。関連プロパティの {{cssxref("min-block-size")}} が要素のもう一方の寸法を定義します。

+ +
{{EmbedInteractiveExample("pages/css/min-inline-size.html")}}
+ + + +

構文

+ +
/* <length> 値 */
+min-inline-size: 100px;
+min-inline-size: 5em;
+
+/* <percentage> 値 */
+min-inline-size: 10%;
+
+/* キーワード値 */
+min-inline-size: max-content;
+min-inline-size: min-content;
+min-inline-size: fit-content(20em);
+
+/* グローバル値 */
+min-inline-size: inherit;
+min-inline-size: initial;
+min-inline-size: unset;
+
+ +

+ +

min-inline-size プロパティは {{cssxref("min-width")}} および {{cssxref("min-height")}} の各プロパティと同じ値を取ります。

+ +

公式定義

+ +

{{cssinfo}}

+ +

形式文法

+ +{{csssyntax}} + +

+ +

縦書きでインライン方向の最小寸法を設定

+ +

HTML

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

CSS

+ +
.exampleText {
+  writing-mode: vertical-rl;
+  background-color: yellow;
+  block-size: 5%;
+  min-inline-size: 200px;
+}
+ +

結果

+ +

{{EmbedLiveSample("Setting_minimum_inline_size_for_vertical_text")}}

+ +

仕様書

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

ブラウザーの互換性

+ +

{{Compat("css.properties.min-inline-size")}}

+ +

関連情報

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