レイアウトとCSS さらに詳細 A2 · 正式仕様 プラットフォーム: ウェブ

max-content

最大コンテンツ

`max-content` は、通常の改行ポイントで折り返されなかった場合にコンテンツが希望するサイズです。

仕組みを見る
そう呼ぶかもしれません max-content最大内在サイズ最大コンテンツの寄与

仕組みを見る

元の作業例最大コンテンツ

もう一つの例

コマンドパネルはショートカット列に `max-content` を使用するため、「⌘ Shift P」は一行に収まります。コマンド名は `minmax(0,1fr)` を使用し、ダイアログがビューポートの制限に達した場合のみ短縮されます。長い翻訳でも、ダイアログをその制限以上に広げることはできません。

主な部分

  1. 01ラップされていないコンテンツ
  2. 02推奨固有サイズ
  3. 03外側のサイズ制約

以下の場合に使用します

1行の内容が重要で、外部の制限によりボックスが広がりすぎないようにする場合に使用します。

以下の場合は使用しないでください

長文の読み物、ユーザーが書いたテキスト、または幅の制限がないボックスには使用しないでください。表示領域をはみ出す可能性があります。

コードで使用する名前

width: max-content or a max-content grid track

出荷前に

Check content order, shared design values, component consistency, contrast, zoom, and layout changes by screen size. Verify every theme, language, and state. If there is motion, offer an equal reduced-motion experience.

コピーできるリクエスト

Outcome:Complete the task with 最大コンテンツ (max-content)。 User context:コマンドパネルはショートカット列に `max-content` を使用するため、「⌘ Shift P」は一行に収まります。コマンド名は `minmax(0,1fr)` を使用し、ダイアログがビューポートの制限に達した場合のみ短縮されます。長い翻訳でも、ダイアログをその制限以上に広げることはできません。 Design concept to apply:最大コンテンツ (max-content)。 Why it fits:1行の内容が重要で、外部の制限によりボックスが広がりすぎないようにする場合に使用します。 Do not use it when:長文の読み物、ユーザーが書いたテキスト、または幅の制限がないボックスには使用しないでください。表示領域をはみ出す可能性があります。 Design requirements: Set the content order, shared design values, and reusable components. Define how the layout changes by screen size and state. Keep useful design choices separate from decoration. Inclusion and resilience: Check contrast, zoom, languages, themes, and reduced motion when needed. Do not use color or effects as the only way to show meaning. Acceptance criteria: The design stays clear on phones and desktops, at zoom, in every theme, and in all supported languages. Interactive states stay clear and consistent. Evidence and limits (evidence boundary):きちんとした書類でも、まだドラフトやリリース候補、あるいは最終版かもしれません。ステータスや、ブラウザやプラットフォームの対応状況を確認しましょう。 Unknowns to confirm: Brand limits, amount of content, supported themes and languages, target devices, and design-system rules.

このリクエストを確認する

Review how 最大コンテンツ (max-content) is used now. Definition: `max-content` は、通常の改行ポイントで折り返されなかった場合にコンテンツが希望するサイズです。 Release checks: Check content order, shared design values, component consistency, contrast, zoom, and layout changes by screen size. Verify every theme, language, and state. If there is motion, offer an equal reduced-motion experience. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.

A2
この用語はどれくらい公式か?

正式仕様

公開されてバージョン管理された公式仕様が、リストされた技術範囲でこの用語を定めているよ。

きちんとした書類でも、まだドラフトやリリース候補、あるいは最終版かもしれません。ステータスや、ブラウザやプラットフォームの対応状況を確認しましょう。

範囲
ソースがカバーするもののみ:正式名、定義、セマンティクス、実装
ドキュメントステータス
草稿
チェックオン
2026-07-30

証拠の情報源と範囲

権威のある情報源 + 用語参照 · W3C CSS Working Group · 草稿 CSS Box Sizing Module Level 3 — max-content size max-content size 範囲: 正式名、定義、セマンティクス、実装 ここでの役割: 直接用語参照 ソースの範囲: 正式名, 定義, セマンティクス, 実装 権威のある情報源 · W3C CSS Working Group · 草稿 CSS Box Sizing Module Level 3 範囲: 正式名、定義、セマンティクス、実装 ここでの役割: 指定された範囲内の権威 ソースの範囲: 正式名, 定義, セマンティクス, 実装

自分でコピーする

ブラウザはこれをコピーできませんでした。下のリクエストを選択して自分でコピーしてください。