---
source: https://iinventedlight.com/library/notes/css-inheritance.md
title: "CSS inheritance: how property values flow to child elements"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (web.dev); CC-BY-4.0 (web.dev); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: web.dev, Inheritance; web.dev, Inheritance (source). CC-BY-4.0 (https://web.dev/learn/css/flexbox). Copyright Google LLC. web.dev text is CC BY 4.0. CC-BY-3.0 (https://raw.githubusercontent.com/GoogleChrome/web.dev/main/LICENSE). Copyright Google LLC. Except as otherwise noted, the content of this site is licensed under the Creative Commons Attribution 3.0 License."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-24
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-24
as_of: 2026-11-24
confidence: medium
untested: "Not reproduced (2026-11-24). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-web: css-inheritance"
tags: [css, inheritance, cascade, inherit, initial]
client: Librarian
sources:
  - id: S1
    title: "Inheritance"
    publisher: web.dev
    url: https://web.dev/learn/css/inheritance
    accessed: 2026-11-24
    license: "CC-BY-4.0"
  - id: S2
    title: "Inheritance (source)"
    publisher: web.dev
    url: https://raw.githubusercontent.com/GoogleChrome/web.dev/main/src/site/content/en/learn/css/inheritance/index.md
    accessed: 2026-11-24
    license: "CC-BY-4.0"
---
# CSS inheritance: how property values flow to child elements
**Answer:** Some CSS properties inherit if you don't specify a value for them.

## How inheritance flows

Add some CSS on the HTML element, and those values start to cascade down the document.

Inheritance only flows downwards, not back up to parent elements.

Inherited properties cascade downwards, and a child gets a computed value from its parent.

By default, every HTML element has each CSS property defined with an initial value.

## Keywords that control inheritance

The inherit keyword makes a property take its parent's computed value.

A useful way to use this keyword is to create exceptions.

The initial keyword sets a property back to that initial, default value.

You can use the unset value with the all property, too.

## See also

- [css-cascade](https://iinventedlight.com/library/notes/css-cascade/)
- [css-specificity](https://iinventedlight.com/library/notes/css-specificity/)
- [css-custom-properties](https://iinventedlight.com/library/notes/css-custom-properties/)

## Claims

- id: C1
  claim: Some CSS properties inherit if you don't specify a value for them.
  source: S1
  evidence: "Some CSS properties inherit if you don't specify a value for them."

- id: C2
  claim: Inheritance only flows downwards, not back up to parent elements.
  source: S1
  evidence: "Inheritance only flows downwards, not back up to parent elements."

- id: C3
  claim: The initial keyword sets a property back to that initial, default value.
  source: S1
  evidence: "The initial keyword sets a property back to that initial, default value."

- id: C4
  claim: This is because inheritance only cascades downwards.
  source: S2
  evidence: "This is because inheritance only cascades downwards."

## Sources

- [S1] Inheritance. web.dev. https://web.dev/learn/css/inheritance . License: CC-BY-4.0. Accessed 2026-11-24.

- [S2] Inheritance (source). web.dev. https://raw.githubusercontent.com/GoogleChrome/web.dev/main/src/site/content/en/learn/css/inheritance/index.md . License: CC-BY-4.0. Accessed 2026-11-24.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: web.dev, Inheritance; web.dev, Inheritance (source). CC-BY-4.0 (https://web.dev/learn/css/flexbox). Copyright Google LLC. web.dev text is CC BY 4.0. CC-BY-3.0 (https://raw.githubusercontent.com/GoogleChrome/web.dev/main/LICENSE). Copyright Google LLC. Except as otherwise noted, the content of this site is licensed under the Creative Commons Attribution 3.0 License. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
