aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/css
diff options
context:
space:
mode:
authorMasahiro FUJIMOTO <mfujimot@gmail.com>2021-11-16 22:52:26 +0900
committerMasahiro FUJIMOTO <mfujimot@gmail.com>2021-11-28 02:23:26 +0900
commit7f9cc6de0a0d289fc95597089260abcdb5abcf8e (patch)
tree58aa9dd9d46775050050bfc40d002d3f8bc921fb /files/ja/web/css
parentb2dc12a85f5414464594621c500e1c13ee8dab8e (diff)
downloadtranslated-content-7f9cc6de0a0d289fc95597089260abcdb5abcf8e.tar.gz
translated-content-7f9cc6de0a0d289fc95597089260abcdb5abcf8e.tar.bz2
translated-content-7f9cc6de0a0d289fc95597089260abcdb5abcf8e.zip
CSS 論理的プロパティの寸法のプロパティを更新
- 2021/11/14 時点の英語版に同期
Diffstat (limited to 'files/ja/web/css')
-rw-r--r--files/ja/web/css/block-size/index.md93
-rw-r--r--files/ja/web/css/inline-size/index.md93
-rw-r--r--files/ja/web/css/max-block-size/index.md185
-rw-r--r--files/ja/web/css/max-inline-size/index.md93
-rw-r--r--files/ja/web/css/min-block-size/index.md93
-rw-r--r--files/ja/web/css/min-inline-size/index.md95
6 files changed, 278 insertions, 374 deletions
diff --git a/files/ja/web/css/block-size/index.md b/files/ja/web/css/block-size/index.md
index d73e9cdf72..673cede837 100644
--- a/files/ja/web/css/block-size/index.md
+++ b/files/ja/web/css/block-size/index.md
@@ -3,30 +3,30 @@ title: block-size
slug: Web/CSS/block-size
tags:
- CSS
- - CSS Logical Property
- - CSS Property
+ - CSS 論理的プロパティ
+ - CSS プロパティ
- Experimental
- - Reference
- - 'recipe:css-property'
+ - リファレンス
+ - recipe:css-property
+browser-compat: css.properties.block-size
translation_of: Web/CSS/block-size
---
-<div>{{CSSRef}}</div>
+{{CSSRef}}
-<p><strong><code>block-size</code></strong> は <a href="/ja/docs/Web/CSS" title="CSS">CSS</a> のプロパティで、書字方向に応じた要素ブロックの水平または垂直方向の寸法を定義します。これは {{cssxref("width")}} または {{cssxref("height")}} プロパティに相当し、 {{cssxref("writing-mode")}} の値によって変わります。</p>
+**`block-size`** は [CSS](/ja/docs/Web/CSS) のプロパティで、書字方向に応じた要素ブロックの水平または垂直方向の寸法を定義します。これは {{cssxref("width")}} または {{cssxref("height")}} プロパティに相当し、 {{cssxref("writing-mode")}} の値によって変わります。
-<p>書字方向が垂直方向であった場合、 <code>block-size</code> の値は要素の幅に対応し、水平方向であった場合は要素の高さに対応します。関連プロパティの {{cssxref("inline-size")}} が要素のもう一方の寸法を定義します。</p>
+書字方向が垂直方向であった場合、 `block-size` の値は要素の幅に対応し、水平方向であった場合は要素の高さに対応します。関連プロパティの {{cssxref("inline-size")}} が要素のもう一方の寸法を定義します。
-<div>{{EmbedInteractiveExample("pages/css/block-size.html")}}</div>
+{{EmbedInteractiveExample("pages/css/block-size.html")}}
-<div class="hidden">このデモのソースファイルは GitHub リポジトリに格納されています。デモプロジェクトに協力したい場合は、 <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> をクローンしてプルリクエストを送信してください。</div>
+## 構文
-<h2 id="Syntax" name="Syntax">構文</h2>
-
-<pre class="brush:css no-line-numbers notranslate">/* &lt;length&gt; 値 */
+```css
+/* <length> 値 */
block-size: 300px;
block-size: 25em;
-/* &lt;percentage&gt; 値 */
+/* <percentage> 値 */
block-size: 75%;
/* キーワード値 */
@@ -38,68 +38,55 @@ block-size: auto;
/* グローバル値 */
block-size: inherit;
block-size: initial;
+block-size: revert;
block-size: unset;
-</pre>
+```
-<h3 id="Values" name="Values">値</h3>
+### 値
-<p><code>block-size</code> プロパティは、{{cssxref("width")}} や {{cssxref("height")}} プロパティと同じ値を取ります。</p>
+`block-size` プロパティは、{{cssxref("width")}} や {{cssxref("height")}} プロパティと同じ値を取ります。
-<h2 id="Formal_definition" name="Formal_definition">公式定義</h2>
+## 公式定義
-<p>{{cssinfo}}</p>
+{{cssinfo}}
-<h2 id="Formal_syntax" name="Formal_syntax">形式文法</h2>
+## 形式文法
{{csssyntax}}
-<h2 id="Examples" name="Examples">例</h2>
+## 例
-<h3 id="Block_size_with_vertical_text" name="Block_size_with_vertical_text">縦書き時のブロック方向の寸法</h3>
+<h3 id="Block_size_with_vertical_text">縦書き時のブロック方向の寸法</h3>
-<h4 id="HTML">HTML</h4>
+#### HTML
-<pre class="brush: html notranslate">&lt;p class="exampleText"&gt;Example text&lt;/p&gt;
-</pre>
+```html
+<p class="exampleText">Example text</p>
+```
-<h4 id="CSS">CSS</h4>
+#### CSS
-<pre class="brush: css notranslate">.exampleText {
+```css
+.exampleText {
writing-mode: vertical-rl;
background-color: yellow;
block-size: 200px;
-}</pre>
+}
+```
-<h4 id="Result">Result</h4>
+#### 結果
-<p>{{EmbedLiveSample("Block_size_with_vertical_text")}}</p>
+{{EmbedLiveSample("Block_size_with_vertical_text")}}
-<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", "#logical-dimension-properties", "block-size")}}</td>
- <td>{{Spec2("CSS Logical Properties")}}</td>
- <td>初回定義</td>
- </tr>
- </tbody>
-</table>
+{{Specifications}}
-<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
+## ブラウザーの互換性
-<p>{{Compat("css.properties.block-size")}}</p>
+{{Compat}}
-<h2 id="See_also" name="See_also">関連情報</h2>
+## 関連情報
-<ul>
- <li>対応付けされる物理的プロパティ: {{cssxref("width")}} および {{cssxref("height")}}</li>
- <li>{{cssxref("writing-mode")}}</li>
-</ul>
+- 対応付けされる物理的プロパティ: {{cssxref("width")}} および {{cssxref("height")}}
+- {{cssxref("writing-mode")}}
diff --git a/files/ja/web/css/inline-size/index.md b/files/ja/web/css/inline-size/index.md
index 75634e9a7b..c5fe468789 100644
--- a/files/ja/web/css/inline-size/index.md
+++ b/files/ja/web/css/inline-size/index.md
@@ -3,29 +3,29 @@ title: inline-size
slug: Web/CSS/inline-size
tags:
- CSS
- - CSS Logical Property
- - CSS Property
- - Reference
- - 'recipe:css-property'
+ - CSS 論理的プロパティ
+ - CSS プロパティ
+ - リファレンス
+ - recipe:css-property
+browser-compat: css.properties.inline-size
translation_of: Web/CSS/inline-size
---
-<div>{{CSSRef}}</div>
+{{CSSRef}}
-<p><strong><code>inline-size</code></strong> は <a href="/ja/docs/Web/CSS" title="CSS">CSS</a> のプロパティで、書字方向に応じた要素ブロックの水平または垂直方向の寸法を定義します。これは {{cssxref("width")}} または {{cssxref("height")}} プロパティに相当し、 {{cssxref("writing-mode")}} の値によって変わります。</p>
+**`inline-size`** は [CSS](/ja/docs/Web/CSS) のプロパティで、書字方向に応じた要素ブロックの水平または垂直方向の寸法を定義します。これは {{cssxref("width")}} または {{cssxref("height")}} プロパティに相当し、 {{cssxref("writing-mode")}} の値によって変わります。
-<p>書字方向が垂直方向であった場合、 <code>inline-size</code> の値は要素の高さに対応し、水平方向であった場合は要素の幅に対応します。関連プロパティの {{cssxref("block-size")}} が要素のもう一方の寸法を定義します。</p>
+書字方向が垂直方向であった場合、 `inline-size` の値は要素の高さに対応し、水平方向であった場合は要素の幅に対応します。関連プロパティの {{cssxref("block-size")}} が要素のもう一方の寸法を定義します。
-<div>{{EmbedInteractiveExample("pages/css/inline-size.html")}}</div>
+{{EmbedInteractiveExample("pages/css/inline-size.html")}}
-<div class="hidden">このデモのソースファイルは GitHub リポジトリに格納されています。デモプロジェクトに協力したい場合は、 <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> をクローンしてプルリクエストを送信してください。</div>
+## 構文
-<h2 id="Syntax" name="Syntax">構文</h2>
-
-<pre class="brush:css no-line-numbers notranslate">/* &lt;length&gt; 値 */
+```css
+/* <length> 値 */
inline-size: 300px;
inline-size: 25em;
-/* &lt;percentage&gt; 値 */
+/* <percentage> 値 */
inline-size: 75%;
/* キーワード値 */
@@ -37,68 +37,55 @@ inline-size: auto;
/* グローバル値 */
inline-size: inherit;
inline-size: initial;
+inline-size: revert;
inline-size: unset;
-</pre>
+```
-<h3 id="Values" name="Values">値</h3>
+### 値
-<p><code>inline-size</code> プロパティは、{{cssxref("width")}} や {{cssxref("height")}} プロパティと同じ値を取ります。</p>
+`inline-size` プロパティは、{{cssxref("width")}} や {{cssxref("height")}} プロパティと同じ値を取ります。
-<h2 id="Formal_definition" name="Formal_definition">公式定義</h2>
+## 公式定義
-<p>{{cssinfo}}</p>
+{{cssinfo}}
-<h2 id="Formal_syntax" name="Formal_syntax">形式文法</h2>
+## 形式文法
{{csssyntax}}
-<h2 id="Examples" name="Examples">例</h2>
+## 例
-<h3 id="Setting_inline_size_in_pixels" name="Setting_inline_size_in_pixels">インライン方向の寸法をピクセル単位で設定</h3>
+<h3 id="Setting_inline_size_in_pixels">インライン方向の寸法をピクセル単位で設定</h3>
-<h4 id="HTML">HTML</h4>
+#### HTML
-<pre class="brush: html notranslate">&lt;p class="exampleText"&gt;Example text&lt;/p&gt;
-</pre>
+```html
+<p class="exampleText">Example text</p>
+```
-<h4 id="CSS">CSS</h4>
+#### CSS
-<pre class="brush: css notranslate">.exampleText {
+```css
+.exampleText {
writing-mode: vertical-rl;
background-color: yellow;
inline-size: 110px;
-}</pre>
+}
+```
-<h4 id="Result">Result</h4>
+#### 結果
-<p>{{EmbedLiveSample("Setting_inline_size_in_pixels")}}</p>
+{{EmbedLiveSample("Setting_inline_size_in_pixels")}}
-<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", "#logical-dimension-properties", "inline-size")}}</td>
- <td>{{Spec2("CSS Logical Properties")}}</td>
- <td>初回定義</td>
- </tr>
- </tbody>
-</table>
+{{Specifications}}
-<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
+## ブラウザーの互換性
-<p>{{Compat("css.properties.inline-size")}}</p>
+{{Compat}}
-<h2 id="See_also" name="See_also">関連情報</h2>
+## 関連情報
-<ul>
- <li>対応付けされる物理的プロパティ: {{cssxref("width")}} および {{cssxref("height")}}</li>
- <li>{{cssxref("writing-mode")}}</li>
-</ul>
+- 対応付けされる物理的プロパティ: {{cssxref("width")}} および {{cssxref("height")}}
+- {{cssxref("writing-mode")}}
diff --git a/files/ja/web/css/max-block-size/index.md b/files/ja/web/css/max-block-size/index.md
index 4fd2ab7123..2b86a6312f 100644
--- a/files/ja/web/css/max-block-size/index.md
+++ b/files/ja/web/css/max-block-size/index.md
@@ -3,41 +3,41 @@ title: max-block-size
slug: Web/CSS/max-block-size
tags:
- CSS
- - CSS Logical Property
- - CSS Property
+ - CSS 論理的プロパティ
+ - CSS プロパティ
- Experimental
- - Layout
+ - レイアウト
- Maximum Height
- Maximum Width
- - Reference
+ - リファレンス
- height
- max-block-size
- - 'recipe:css-property'
+ - recipe:css-property
- size
- width
+browser-compat: css.properties.max-block-size
translation_of: Web/CSS/max-block-size
---
-<div>{{CSSRef}}</div>
+{{CSSRef}}
-<p><span class="seoSummary"><strong><code>max-block-size</code></strong> は <a href="/ja/docs/Web/CSS">CSS</a> のプロパティで、 {{cssxref("writing-mode")}} で指定された書字方向とは逆の向きの要素の最大寸法を指定します。</span>すなわち、書字方向が水平 (横書き) であれば、 <code>max-block-size</code> は {{cssxref("max-height")}} と等価になります。書字方向が垂直 (縦書き) であれば、 <code>max-block-size</code> は {{cssxref("max-width")}} と同じになります。</p>
+**`max-block-size`** は [CSS](/ja/docs/Web/CSS) のプロパティで、 {{cssxref("writing-mode")}} で指定された書字方向とは逆の向きの要素の最大寸法を指定します。すなわち、書字方向が水平 (横書き) であれば、 `max-block-size` は {{cssxref("max-height")}} と等価になります。書字方向が垂直 (縦書き) であれば、 `max-block-size` は {{cssxref("max-width")}} と同じになります。
-<p>もう一方の方向の最大長は、 {{cssxref("max-inline-size")}} プロパティを使用して指定します。</p>
+もう一方の方向の最大長は、 {{cssxref("max-inline-size")}} プロパティを使用して指定します。
-<p><code>max-width</code> は常に水平方向の寸法に使われ、 <code>max-height</code> は常に垂直方向の寸法に使われるため、このプロパティはテキストコンテンツの寸法に基づいて寸法を設定する必要がある場合、書字方向を意識して指定する必要がある場合に便利です。</p>
+`max-width` は常に水平方向の寸法に使われ、 `max-height` は常に垂直方向の寸法に使われるため、このプロパティはテキストコンテンツの寸法に基づいて寸法を設定する必要がある場合、書字方向を意識して指定する必要がある場合に便利です。
-<p>ふつう <code>max-height</code> または <code>max-width</code> を使用する場面でいつでも、代わりに <code>max-block-size</code> をコンテンツの最大の「高さ」を設定するために使用し (これは垂直の値ではない可能性がありますが)、 <code>max-inline-size</code>をコンテンツの最大の「幅」を設定するために使用してください (これが横書きではなく縦書きである場合であっても)。様々な書字方向を表す{{SectionOnPage("/ja/docs/Web/CSS/writing-mode", "例")}}をご覧ください。</p>
+ふつう `max-height` または `max-width` を使用する場面でいつでも、代わりに `max-block-size` をコンテンツの最大の「高さ」を設定するために使用し (これは垂直の値ではない可能性がありますが)、 `max-inline-size`をコンテンツの最大の「幅」を設定するために使用してください (これが横書きではなく縦書きである場合であっても)。様々な書字方向を表す<a href="/ja/docs/Web/CSS/writing-mode#例">例</a>をご覧ください。
-<div>{{EmbedInteractiveExample("pages/css/max-block-size.html")}}</div>
+{{EmbedInteractiveExample("pages/css/max-block-size.html")}}
-<div class="hidden">このデモのソースファイルは GitHub リポジトリに格納されています。デモプロジェクトに協力したい場合は、 <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> をクローンしてプルリクエストを送信してください。</div>
+## 構文
-<h2 id="Syntax" name="Syntax">構文</h2>
-
-<pre class="brush:css no-line-numbers notranslate">/* &lt;length&gt; 値 */
+```css
+/* <length> 値 */
max-block-size: 300px;
max-block-size: 25em;
-/* &lt;percentage&gt; 値 */
+/* <percentage> 値 */
max-block-size: 75%;
/* キーワード値 */
@@ -49,68 +49,52 @@ max-block-size: fit-content(20em);
/* グローバル値 */
max-block-size: inherit;
max-block-size: initial;
+max-block-size: revert;
max-block-size: unset;
-</pre>
-
-<h3 id="Values" name="Values">値</h3>
-
-<p><code>max-block-size</code> プロパティの値は、 {{cssxref("max-width")}} および {{cssxref("max-height")}} プロパティで有効なすべての値を取ることができます。</p>
-
-<p>{{page("/ja/docs/Web/CSS/max-width", "Values")}}</p>
-
-<h3 id="How_writing-mode_affects_directionality" name="How_writing-mode_affects_directionality">書字方向が方向にどう影響するのか</h3>
-
-<p><code>writing-mode</code> の値は次のように <code>max-block-size</code> から <code>max-width</code> または <code>max-height</code> への対応付けに影響します。</p>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col"><code>writing-mode</code> の値</th>
- <th scope="col"><code>max-block-size</code> が等価になるもの</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><code>horizontal-tb</code>, <code>lr</code> {{deprecated_inline}}, <code>lr-tb</code> {{deprecated_inline}}, <code>rl</code> {{deprecated_inline}}, <code>rb</code> {{deprecated_inline}}, <code>rb-rl</code> {{deprecated_inline}}</td>
- <td>{{cssxref("max-height")}}</td>
- </tr>
- <tr>
- <td><code>vertical-rl</code>, <code>vertical-lr</code>, <code>sideways-rl</code> {{experimental_inline}}, <code>sideways-lr</code> {{experimental_inline}}, <code>tb</code> {{deprecated_inline}}, <code>tb-rl</code> {{deprecated_inline}}</td>
- <td>{{cssxref("max-width")}}</td>
- </tr>
- </tbody>
-</table>
-
-<div class="note">
-<p><code>writing-mode</code> の値のうち <code>sideways-lr</code> および <code>sideways-rl</code> は設計プロセスの後期に CSS Writing Modes Level 3 仕様書から削除されました。これらは Level 4 で復活する可能性があります。</p>
-</div>
+```
-<div class="note">
-<p>書字方向の <code>lr</code>, <code>lr-tb</code>, <code>rl</code>, <code>rb</code>, <code>rb-tl</code> は {{Glossary("HTML")}} のコンテキストでは許可されなくなりました。 {{Glossary("SVG")}} 1.x コンテキストでのみ利用できる可能性があります。</p>
-</div>
+### 値
+
+`max-block-size` プロパティの値は、 {{cssxref("max-width")}} および {{cssxref("max-height")}} プロパティで有効なすべての値を取ることができます。
+
+{{page("/ja/docs/Web/CSS/max-width", "値")}}
+
+### 書字方向が方向にどう影響するのか
+
+`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")}} |
+
+> **Note:** `writing-mode` の値のうち `sideways-lr` および `sideways-rl` は設計プロセスの後期に CSS 書字方向s Level 3 仕様書から削除されました。これらは Level 4 で復活する可能性があります。
+
+> **Note:** 書字方向の `lr`, `lr-tb`, `rl`, `rb`, `rb-tl` は {{Glossary("HTML")}} のコンテキストでは許可されなくなりました。 {{Glossary("SVG")}} 1.x コンテキストでのみ利用できる可能性があります。
-<h2 id="Formal_definition" name="Formal_definition">公式定義</h2>
+## 公式定義
-<p>{{cssinfo}}</p>
+{{cssinfo}}
-<h2 id="Formal_syntax" name="Formal_syntax">形式文法</h2>
+## 形式文法
{{csssyntax}}
-<h2 id="Examples" name="Examples">例</h2>
+## 例
-<h3 id="Setting_max-block-size_with_horizontal_and_vertical_text">Setting max-block-size with horizontal and vertical text</h3>
+<h3 id="Setting_max-block-size_with_horizontal_and_vertical_text">横書きおよび縦書きでの max-block-size の設定</h3>
-<p>この例では、同じテキスト ({{interwiki("wikipedia", "en:Herman Melville", "Herman Melville")}} の小説 <em>{{interwiki("wikipedia", "en:Moby-Dick", "Moby-Dick")}}</em> の冒頭部分) が <code>horizontal-tb</code> および <code>vertical-rl</code> の両方の書字方向で表示されます。</p>
+この例では、同じテキスト ({{interwiki("wikipedia", "en:Herman Melville", "Herman Melville")}} の小説 <em>{{interwiki("wikipedia", "en:Moby-Dick", "Moby-Dick")}}</em> の冒頭部分) が `horizontal-tb` および `vertical-rl` の両方の書字方向で表示されます。
-<p>二つのボックスついてそれ以外の部分はすべて、 {{cssxref("max-block-size")}} に使われている値を含めて同じです。</p>
+二つのボックスついてそれ以外の部分はすべて、 {{cssxref("max-block-size")}} に使われている値を含めて同じです。
-<h4 id="HTML">HTML</h4>
+#### HTML
-<p>この HTML では、単純に二つの {{HTMLElement("div")}} ブロックを作成し、それぞれの {{cssxref("writing-mode")}} を <code>horizontal</code> および <code>vertical</code> クラスを用いて設定しています。両方のボックスで <code>standard-box</code> クラスを共有しており、こちらで単純に色、パディング、それぞれの <code>max-block-size</code> の値を設定しています。</p>
+この HTML では、単純に二つの {{HTMLElement("div")}} ブロックを作成し、それぞれの {{cssxref("writing-mode")}} を `horizontal` および `vertical` クラスを用いて設定しています。両方のボックスで `standard-box` クラスを共有しており、こちらで単純に色、パディング、それぞれの `max-block-size` の値を設定しています。
-<pre class="brush: html notranslate">&lt;p&gt;Writing mode &lt;code&gt;horizontal-tb&lt;/code&gt; (the default):&lt;/p&gt;
-&lt;div class="standard-box horizontal"&gt;
+```html
+<p>書字方向 <code>horizontal-tb</code> (既定値):</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
@@ -118,10 +102,10 @@ max-block-size: unset;
the watery part of the world. It is a way I have of
driving off the spleen and regulating the
circulation.
-&lt;/div&gt;
+</div>
-&lt;p&gt;Writing mode &lt;code&gt;vertical-rl&lt;/code&gt;:&lt;/p&gt;
-&lt;div class="standard-box vertical"&gt;
+<p>書字方向 <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
@@ -129,15 +113,17 @@ max-block-size: unset;
the watery part of the world. It is a way I have of
driving off the spleen and regulating the
circulation.
-&lt;/div&gt;</pre>
+</div>
+```
-<h4 id="CSS">CSS</h4>
+#### CSS
-<p>この CSS では3つのクラスを定義しています。最初は <code>standard-box</code> で、両方のボックスに適用され、上にあるものです。これはブロックの最小および最大の寸法、フォントの大きさ、などを指定します。</p>
+この CSS では3つのクラスを定義しています。最初は `standard-box` で、両方のボックスに適用され、上にあるものです。これはブロックの最小および最大の寸法、フォントの大きさ、などを指定します。
-<p>その後にくるクラス <code>horizontal</code> および <code>vertical</code> は、ボックスに {{cssxref("writing-mode")}} プロパティを追加し、値を使われるクラスに応じて <code>horizontal-tb</code> または <code>vertical-rl</code> に設定します。</p>
+その後にくるクラス `horizontal` および `vertical` は、ボックスに {{cssxref("writing-mode")}} プロパティを追加し、値を使われるクラスに応じて `horizontal-tb` または `vertical-rl` に設定します。
-<pre class="brush: css notranslate">.standard-box {
+```css
+.standard-box {
padding: 4px;
background-color: #abcdef;
color: #000;
@@ -153,39 +139,22 @@ max-block-size: unset;
.vertical {
writing-mode: vertical-rl;
}
-</pre>
-
-<h4 id="Result" name="Result">結果</h4>
-
-<p>{{EmbedLiveSample("Setting_max-block-size_with_horizontal_and_vertical_text", 600, 850)}}</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-max-block-size", "max-block-size")}}</td>
- <td>{{Spec2("CSS Logical Properties")}}</td>
- <td>初回定義</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
-
-<p>{{Compat("css.properties.max-block-size")}}</p>
-
-<h2 id="See_also" name="See_also">関連情報</h2>
-
-<ul>
- <li>対応する物理的プロパティ: {{cssxref("max-width")}} と {{cssxref("max-height")}}</li>
- <li>他の方向の最大寸法の設定: {{cssxref("max-inline-size")}}</li>
- <li>{{cssxref("writing-mode")}}</li>
-</ul>
+```
+
+#### 結果
+
+{{EmbedLiveSample("Setting_max-block-size_with_horizontal_and_vertical_text", 600, 850)}}
+
+## 仕様書
+
+{{Specifications}}
+
+## ブラウザーの互換性
+
+{{Compat}}
+
+## 関連情報
+
+- 対応する物理的プロパティ: {{cssxref("max-width")}} と {{cssxref("max-height")}}
+- 他の方向の最大寸法の設定: {{cssxref("max-inline-size")}}
+- {{cssxref("writing-mode")}}
diff --git a/files/ja/web/css/max-inline-size/index.md b/files/ja/web/css/max-inline-size/index.md
index 05189f14c3..6f7b123f69 100644
--- a/files/ja/web/css/max-inline-size/index.md
+++ b/files/ja/web/css/max-inline-size/index.md
@@ -4,34 +4,34 @@ slug: Web/CSS/max-inline-size
tags:
- CSS
- CSS Logical Properties
- - CSS Logical Property
- - CSS Property
+ - CSS 論理的プロパティ
+ - CSS プロパティ
- Element size
- Experimental
- - Reference
+ - リファレンス
- Text Direction
- Writing Mode
- max-inline-size
- - 'recipe:css-property'
+ - recipe:css-property
+browser-compat: css.properties.max-inline-size
translation_of: Web/CSS/max-inline-size
---
-<div>{{CSSRef}}</div>
+{{CSSRef}}
-<p><span class="seoSummary"><strong><code>max-inline-size</code></strong> は <a href="/ja/docs/Web/CSS" title="CSS">CSS</a> のプロパティで、書字方向に応じて要素ブロックの水平または垂直方向の最大の寸法を定義します。これは {{cssxref("max-width")}} または {{cssxref("max-height")}} のどちらかのプロパティと、 {{cssxref("writing-mode")}} の値に応じて対応します。</span></p>
+**`max-inline-size`** は [CSS](/ja/docs/Web/CSS) のプロパティで、書字方向に応じて要素ブロックの水平または垂直方向の最大の寸法を定義します。これは {{cssxref("max-width")}} または {{cssxref("max-height")}} のどちらかのプロパティと、 {{cssxref("writing-mode")}} の値に応じて対応します。
-<p>書字方向が垂直方向であった場合、 <code>max-inline-size</code> の値は要素の最大の高さに対応します。そうでなければ、要素の最大幅に対応します。関連プロパティとして、 {{cssxref("max-block-size")}} が要素のもう一方の寸法を定義します。</p>
+書字方向が垂直方向であった場合、 `max-inline-size` の値は要素の最大の高さに対応します。そうでなければ、要素の最大幅に対応します。関連プロパティとして、 {{cssxref("max-block-size")}} が要素のもう一方の寸法を定義します。
-<div>{{EmbedInteractiveExample("pages/css/max-inline-size.html")}}</div>
+{{EmbedInteractiveExample("pages/css/max-inline-size.html")}}
-<p class="hidden">このデモのソースファイルは GitHub リポジトリに格納されています。デモプロジェクトに協力したい場合は、 <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> をクローンしてプルリクエストを送信してください。</p>
+## 構文
-<h2 id="Syntax" name="Syntax">構文</h2>
-
-<pre class="brush:css no-line-numbers notranslate">/* &lt;length&gt; 値 */
+```css
+/* <length> 値 */
max-inline-size: 300px;
max-inline-size: 25em;
-/* &lt;percentage&gt; 値 */
+/* <percentage> 値 */
max-inline-size: 75%;
/* キーワード値 */
@@ -43,69 +43,56 @@ max-inline-size: fit-content(20em);
/* グローバル値 */
max-inline-size: inherit;
max-inline-size: initial;
+max-inline-size: revert;
max-inline-size: unset;
-</pre>
+```
-<h3 id="Values" name="Values">値</h3>
+### 値
-<p><code>max-inline-size</code> プロパティは {{cssxref("max-width")}} および {{cssxref("max-height")}} の各プロパティと同じ値を取ります。</p>
+`max-inline-size` プロパティは {{cssxref("max-width")}} および {{cssxref("max-height")}} の各プロパティと同じ値を取ります。
-<h2 id="Formal_definition" name="Formal_definition">公式定義</h2>
+## 公式定義
-<p>{{cssinfo}}</p>
+{{cssinfo}}
-<h2 id="Formal_syntax" name="Formal_syntax">形式文法</h2>
+## 形式文法
{{csssyntax}}
-<h2 id="Examples" name="Examples">例</h2>
+## 例
-<h3 id="Setting_maximum_inline_size_in_pixels" name="Setting_maximum_inline_size_in_pixels">インライン方向の最大寸法をピクセル単位で設定</h3>
+<h3 id="Setting_maximum_inline_size_in_pixels">インライン方向の最大寸法をピクセル単位で設定</h3>
-<h4 id="HTML">HTML</h4>
+#### HTML
-<pre class="brush: html notranslate">&lt;p class="exampleText"&gt;Example text&lt;/p&gt;
-</pre>
+```html
+<p class="exampleText">Example text</p>
+```
-<h4 id="CSS">CSS</h4>
+#### CSS
-<pre class="brush: css notranslate">.exampleText {
+```css
+.exampleText {
writing-mode: vertical-rl;
background-color: yellow;
block-size: 100%;
max-inline-size: 200px;
-}</pre>
+}
+```
-<h4 id="Result" name="Result">結果</h4>
+#### 結果
-<p>{{EmbedLiveSample("Setting_maximum_inline_size_in_pixels")}}</p>
+{{EmbedLiveSample("Setting_maximum_inline_size_in_pixels")}}
-<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-max-inline-size", "max-inline-size")}}</td>
- <td>{{Spec2("CSS Logical Properties")}}</td>
- <td>初回定義</td>
- </tr>
- </tbody>
-</table>
+{{Specifications}}
-<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
+## ブラウザーの互換性
-<p>{{Compat("css.properties.max-inline-size")}}</p>
+{{Compat}}
-<h2 id="See_also" name="See_also">関連情報</h2>
+## 関連情報
-<ul>
- <li>対応付けされる物理的プロパティ: {{cssxref("max-width")}} および {{cssxref("max-height")}}</li>
- <li>{{cssxref("writing-mode")}}</li>
-</ul>
+- 対応付けされる物理的プロパティ: {{cssxref("max-width")}} および {{cssxref("max-height")}}
+- {{cssxref("writing-mode")}}
diff --git a/files/ja/web/css/min-block-size/index.md b/files/ja/web/css/min-block-size/index.md
index 5e27a77b8b..87c36a8b61 100644
--- a/files/ja/web/css/min-block-size/index.md
+++ b/files/ja/web/css/min-block-size/index.md
@@ -3,31 +3,31 @@ title: min-block-size
slug: Web/CSS/min-block-size
tags:
- CSS
- - CSS Logical Property
- - CSS Property
+ - CSS 論理的プロパティ
+ - CSS プロパティ
- Experimental
- - Reference
+ - リファレンス
- min-block-size
- - 'recipe:css-property'
+ - recipe:css-property
+browser-compat: css.properties.min-block-size
translation_of: Web/CSS/min-block-size
---
-<div>{{CSSRef}}</div>
+{{CSSRef}}
-<p><span class="seoSummary"><code>min-block-size</code> は <a href="/ja/docs/Web/CSS" title="CSS">CSS</a> のプロパティで、書字方向に応じて要素ブロックの水平または垂直方向の最小の寸法を定義します。これは {{cssxref("min-width")}} または {{cssxref("min-height")}} のどちらかのプロパティと、 {{cssxref("writing-mode")}} の値に応じて対応します。</span></p>
+**`min-block-size`** は [CSS](/ja/docs/Web/CSS) のプロパティで、書字方向に応じて要素ブロックの水平または垂直方向の最小の寸法を定義します。これは {{cssxref("min-width")}} または {{cssxref("min-height")}} のどちらかのプロパティと、 {{cssxref("writing-mode")}} の値に応じて対応します。
-<p>書字方向が垂直方向であった場合、 <code>min-block-size</code> の値は要素の最小幅に対応します。そうでなければ、要素の最小の高さに対応します。関連プロパティの {{cssxref("min-inline-size")}} が要素のもう一方の寸法を定義します。</p>
+書字方向が垂直方向であった場合、 `min-block-size` の値は要素の最小幅に対応します。そうでなければ、要素の最小の高さに対応します。関連プロパティの {{cssxref("min-inline-size")}} が要素のもう一方の寸法を定義します。
-<div>{{EmbedInteractiveExample("pages/css/min-block-size.html")}}</div>
+{{EmbedInteractiveExample("pages/css/min-block-size.html")}}
-<p class="hidden">このデモのソースファイルは GitHub リポジトリに格納されています。デモプロジェクトに協力したい場合は、 <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> をクローンしてプルリクエストを送信してください。</p>
+## 構文
-<h2 id="Syntax" name="Syntax">構文</h2>
-
-<pre class="brush:css no-line-numbers notranslate">/* &lt;length&gt; 値 */
+```css
+/* <length> 値 */
min-block-size: 100px;
min-block-size: 5em;
-/* &lt;percentage&gt; 値 */
+/* <percentage> 値 */
min-block-size: 10%;
/* キーワード値 */
@@ -38,68 +38,55 @@ min-block-size: fit-content(20em);
/* グローバル値 */
min-block-size: inherit;
min-block-size: initial;
+min-block-size: revert;
min-block-size: unset;
-</pre>
+```
-<h3 id="Values" name="Values">値</h3>
+### 値
-<p><code>min-block-size</code> プロパティは {{cssxref("min-width")}} および {{cssxref("min-height")}} の各プロパティと同じ値を取ります。</p>
+`min-block-size` プロパティは {{cssxref("min-width")}} および {{cssxref("min-height")}} の各プロパティと同じ値を取ります。
-<h2 id="Formal_definition" name="Formal_definition">公式定義</h2>
+## 公式定義
-<p>{{cssinfo}}</p>
+{{cssinfo}}
-<h2 id="Formal_syntax" name="Formal_syntax">形式文法</h2>
+## 形式文法
{{csssyntax}}
-<h2 id="Examples" name="Examples">例</h2>
+## 例
-<h3 id="Setting_minimum_block_size_for_vertical_text" name="Setting_minimum_block_size_for_vertical_text">縦書きでブロック方向の最小寸法を設定</h3>
+<h3 id="Setting_minimum_block_size_for_vertical_text">縦書きでブロック方向の最小寸法を設定</h3>
-<h4 id="HTML">HTML</h4>
+#### HTML
-<pre class="brush: html notranslate">&lt;p class="exampleText"&gt;Example text&lt;/p&gt;
-</pre>
+```html
+<p class="exampleText">Example text</p>
+```
-<h4 id="CSS">CSS</h4>
+#### CSS
-<pre class="brush: css notranslate">.exampleText {
+```css
+.exampleText {
writing-mode: vertical-rl;
background-color: yellow;
min-block-size: 200px;
-}</pre>
+}
+```
-<h4 id="Result" name="Result">結果</h4>
+#### 結果
-<p>{{EmbedLiveSample("Setting_minimum_block_size_for_vertical_text")}}</p>
+{{EmbedLiveSample("Setting_minimum_block_size_for_vertical_text")}}
-<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-min-block-size", "min-block-size")}}</td>
- <td>{{Spec2("CSS Logical Properties")}}</td>
- <td>初回定義</td>
- </tr>
- </tbody>
-</table>
+{{Specifications}}
-<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
+## ブラウザーの互換性
-<p>{{Compat("css.properties.min-block-size")}}</p>
+{{Compat}}
-<h2 id="See_also" name="See_also">関連情報</h2>
+## 関連情報
-<ul>
- <li>対応付けされる物理的プロパティ: {{cssxref("min-width")}} および {{cssxref("min-height")}}</li>
- <li>{{cssxref("writing-mode")}}</li>
-</ul>
+- 対応付けされる物理的プロパティ: {{cssxref("min-width")}} および {{cssxref("min-height")}}
+- {{cssxref("writing-mode")}}
diff --git a/files/ja/web/css/min-inline-size/index.md b/files/ja/web/css/min-inline-size/index.md
index d14c3fef6d..09846b1c6f 100644
--- a/files/ja/web/css/min-inline-size/index.md
+++ b/files/ja/web/css/min-inline-size/index.md
@@ -3,31 +3,29 @@ title: min-inline-size
slug: Web/CSS/min-inline-size
tags:
- CSS
- - CSS Logical Property
- - CSS Property
+ - CSS 論理的プロパティ
+ - CSS プロパティ
- Experimental
- - Reference
+ - リファレンス
- min-inline-size
- - 'recipe:css-property'
+ - recipe:css-property
+browser-compat: css.properties.min-inline-size
translation_of: Web/CSS/min-inline-size
---
-<div>{{CSSRef}}</div>
+{{CSSRef}}
-<p><span class="seoSummary"><strong><code>min-inline-size</code></strong> は <a href="/ja/docs/Web/CSS" title="CSS">CSS</a> のプロパティで、書字方向に応じて要素ブロックの水平または垂直方向の最小の寸法を定義します。これは {{cssxref("min-width")}} または {{cssxref("min-height")}} のどちらかのプロパティと、 {{cssxref("writing-mode")}} の値に応じて対応します。</span></p>
+**`min-inline-size`** は [CSS](/ja/docs/Web/CSS) のプロパティで、書字方向に応じて要素ブロックの水平または垂直方向の最小の寸法を定義します。これは {{cssxref("min-width")}} または {{cssxref("min-height")}} のどちらかのプロパティと、 {{cssxref("writing-mode")}} の値に応じて対応します。
-<p>書字方向が垂直方向であった場合、 <code>min-inline-size</code> の値は要素の最小の高さに対応します。そうでなければ、要素の最小幅に対応します。関連プロパティの {{cssxref("min-block-size")}} が要素のもう一方の寸法を定義します。</p>
+{{EmbedInteractiveExample("pages/css/min-inline-size.html")}}
-<div>{{EmbedInteractiveExample("pages/css/min-inline-size.html")}}</div>
+## 構文
-<p class="hidden">このデモのソースファイルは GitHub リポジトリに格納されています。デモプロジェクトに協力したい場合は、 <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> をクローンしてプルリクエストを送信してください。</p>
-
-<h2 id="Syntax" name="Syntax">構文</h2>
-
-<pre class="brush:css no-line-numbers notranslate">/* &lt;length&gt; 値 */
+```css
+/* <length> 値 */
min-inline-size: 100px;
min-inline-size: 5em;
-/* &lt;percentage&gt; 値 */
+/* <percentage> 値 */
min-inline-size: 10%;
/* キーワード値 */
@@ -38,69 +36,58 @@ min-inline-size: fit-content(20em);
/* グローバル値 */
min-inline-size: inherit;
min-inline-size: initial;
+min-inline-size: revert;
min-inline-size: unset;
-</pre>
+```
+
+書字方向が垂直方向であった場合、 `min-inline-size` の値は要素の最小の高さに対応します。そうでなければ、要素の最小幅に対応します。関連プロパティの {{cssxref("min-block-size")}} が要素のもう一方の寸法を定義します。
-<h3 id="Values" name="Values">値</h3>
+### 値
-<p><code>min-inline-size</code> プロパティは {{cssxref("min-width")}} および {{cssxref("min-height")}} の各プロパティと同じ値を取ります。</p>
+`min-inline-size` プロパティは {{cssxref("min-width")}} および {{cssxref("min-height")}} の各プロパティと同じ値を取ります。
-<h2 id="Formal_definition" name="Formal_definition">公式定義</h2>
+## 公式定義
-<p>{{cssinfo}}</p>
+{{cssinfo}}
-<h2 id="Formal_syntax" name="Formal_syntax">形式文法</h2>
+## 形式文法
{{csssyntax}}
-<h2 id="Examples" name="Examples">例</h2>
+## 例
-<h3 id="Setting_minimum_inline_size_for_vertical_text" name="Setting_minimum_inline_size_for_vertical_text">縦書きでインライン方向の最小寸法を設定</h3>
+<h3 id="Setting_minimum_inline_size_for_vertical_text">縦書きでインライン方向の最小寸法を設定</h3>
-<h4 id="HTML">HTML</h4>
+#### HTML
-<pre class="brush: html notranslate">&lt;p class="exampleText"&gt;Example text&lt;/p&gt;
-</pre>
+```html
+<p class="exampleText">Example text</p>
+```
-<h4 id="CSS">CSS</h4>
+#### CSS
-<pre class="brush: css notranslate">.exampleText {
+```css
+.exampleText {
writing-mode: vertical-rl;
background-color: yellow;
block-size: 5%;
min-inline-size: 200px;
-}</pre>
+}
+```
-<h4 id="Result" name="Result">結果</h4>
+#### 結果
-<p>{{EmbedLiveSample("Setting_minimum_inline_size_for_vertical_text")}}</p>
+{{EmbedLiveSample("Setting_minimum_inline_size_for_vertical_text")}}
-<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-min-inline-size", "min-inline-size")}}</td>
- <td>{{Spec2("CSS Logical Properties")}}</td>
- <td>初回定義</td>
- </tr>
- </tbody>
-</table>
+{{Specifications}}
-<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
+## ブラウザーの互換性
-<p>{{Compat("css.properties.min-inline-size")}}</p>
+{{Compat}}
-<h2 id="See_also" name="See_also">関連情報</h2>
+## 関連情報
-<ul>
- <li>対応付けされる物理的プロパティ: {{cssxref("min-width")}} および {{cssxref("min-height")}}</li>
- <li>{{cssxref("writing-mode")}}</li>
-</ul>
+- 対応付けされる物理的プロパティ: {{cssxref("min-width")}} および {{cssxref("min-height")}}
+- {{cssxref("writing-mode")}}