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/max-inline-size/index.md | 111 ++++++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100644 files/ja/web/css/max-inline-size/index.md (limited to 'files/ja/web/css/max-inline-size/index.md') 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")}}

+ +

関連情報

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