aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/css/max-block-size/index.html
diff options
context:
space:
mode:
authorMasahiro FUJIMOTO <mfujimot@gmail.com>2021-11-16 22:24:44 +0900
committerMasahiro FUJIMOTO <mfujimot@gmail.com>2021-11-28 02:23:26 +0900
commitb2dc12a85f5414464594621c500e1c13ee8dab8e (patch)
tree183a8cb5dbe91b3e79e38c18e8428f7d7eed17b7 /files/ja/web/css/max-block-size/index.html
parentdaa81b81edd012cf4f7882c81aa2ae31a7e0d3f2 (diff)
downloadtranslated-content-b2dc12a85f5414464594621c500e1c13ee8dab8e.tar.gz
translated-content-b2dc12a85f5414464594621c500e1c13ee8dab8e.tar.bz2
translated-content-b2dc12a85f5414464594621c500e1c13ee8dab8e.zip
CSS 論理的プロパティの寸法のプロパティを変換準備
Diffstat (limited to 'files/ja/web/css/max-block-size/index.html')
-rw-r--r--files/ja/web/css/max-block-size/index.html191
1 files changed, 0 insertions, 191 deletions
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
----
-<div>{{CSSRef}}</div>
-
-<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>
-
-<p>もう一方の方向の最大長は、 {{cssxref("max-inline-size")}} プロパティを使用して指定します。</p>
-
-<p><code>max-width</code> は常に水平方向の寸法に使われ、 <code>max-height</code> は常に垂直方向の寸法に使われるため、このプロパティはテキストコンテンツの寸法に基づいて寸法を設定する必要がある場合、書字方向を意識して指定する必要がある場合に便利です。</p>
-
-<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>
-
-<div>{{EmbedInteractiveExample("pages/css/max-block-size.html")}}</div>
-
-<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; 値 */
-max-block-size: 300px;
-max-block-size: 25em;
-
-/* &lt;percentage&gt; 値 */
-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;
-</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>
-
-<h2 id="Formal_definition" name="Formal_definition">公式定義</h2>
-
-<p>{{cssinfo}}</p>
-
-<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>
-
-<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>
-
-<p>二つのボックスついてそれ以外の部分はすべて、 {{cssxref("max-block-size")}} に使われている値を含めて同じです。</p>
-
-<h4 id="HTML">HTML</h4>
-
-<p>この HTML では、単純に二つの {{HTMLElement("div")}} ブロックを作成し、それぞれの {{cssxref("writing-mode")}} を <code>horizontal</code> および <code>vertical</code> クラスを用いて設定しています。両方のボックスで <code>standard-box</code> クラスを共有しており、こちらで単純に色、パディング、それぞれの <code>max-block-size</code> の値を設定しています。</p>
-
-<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;
- 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.
-&lt;/div&gt;
-
-&lt;p&gt;Writing mode &lt;code&gt;vertical-rl&lt;/code&gt;:&lt;/p&gt;
-&lt;div class="standard-box vertical"&gt;
- 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.
-&lt;/div&gt;</pre>
-
-<h4 id="CSS">CSS</h4>
-
-<p>この CSS では3つのクラスを定義しています。最初は <code>standard-box</code> で、両方のボックスに適用され、上にあるものです。これはブロックの最小および最大の寸法、フォントの大きさ、などを指定します。</p>
-
-<p>その後にくるクラス <code>horizontal</code> および <code>vertical</code> は、ボックスに {{cssxref("writing-mode")}} プロパティを追加し、値を使われるクラスに応じて <code>horizontal-tb</code> または <code>vertical-rl</code> に設定します。</p>
-
-<pre class="brush: css notranslate">.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;
-}
-</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>