レイアウトとCSS コア A2 · 正式仕様 プラットフォーム: ウェブ

CSS Inheritance

CSS継承

CSSの継承により、一部のプロパティは親要素から値をコピーできます。これは、子要素に独自の値がないときに起こります。

仕組みを見る
そう呼ぶかもしれません CSS Inheritance継承値親値の伝播

仕組みを見る

元の作業例CSS継承

もう一つの例

article はルートで `color` と `font-family` を一度設定します。その後の引用や内部の単語はそのスタイルを継承します。購入ウィジェットはスコープ付きトークンによって継承されたテキストスタイルをリセットできます。`border` と `padding` は継承されないため、ウィジェットはそれらを直接設定します。

主な部分

  1. 01親計算値
  2. 02継承されたプロパティ
  3. 03子が使用した値

以下の場合に使用します

セクション全体で一貫させるべきテキストスタイル、色、およびカスタムプロパティには継承を使用してください。

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

すべてのプロパティが継承されるわけではありません。望む結果に一致する場合にのみ、`inherit`、`initial`、`unset`、`revert`、または`revert-layer`を使用してください。

コードで使用する名前

inherit, initial, unset, revert, revert-layer, and inherited custom properties

出荷前に

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 CSS継承 (CSS Inheritance)。 User context:article はルートで `color` と `font-family` を一度設定します。その後の引用や内部の単語はそのスタイルを継承します。購入ウィジェットはスコープ付きトークンによって継承されたテキストスタイルをリセットできます。`border` と `padding` は継承されないため、ウィジェットはそれらを直接設定します。 Design concept to apply:CSS継承 (CSS Inheritance)。 Why it fits:セクション全体で一貫させるべきテキストスタイル、色、およびカスタムプロパティには継承を使用してください。 Do not use it when:すべてのプロパティが継承されるわけではありません。望む結果に一致する場合にのみ、`inherit`、`initial`、`unset`、`revert`、または`revert-layer`を使用してください。 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 CSS継承 (CSS Inheritance) is used now. Definition: CSSの継承により、一部のプロパティは親要素から値をコピーできます。これは、子要素に独自の値がないときに起こります。 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 Cascading and Inheritance Level 5 — Inheritance Inheritance 範囲: 正式名、定義、セマンティクス、実装 ここでの役割: 直接用語参照 ソースの範囲: 正式名, 定義, セマンティクス, 実装 権威のある情報源 · W3C CSS Working Group · 草稿 CSS Cascading and Inheritance Level 5 範囲: 正式名、定義、セマンティクス、実装 ここでの役割: 指定された範囲内の権威 ソースの範囲: 正式名, 定義, セマンティクス, 実装

自分でコピーする

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