CSS fill Property Reference

The CSS fill property is a standard property in Scalable Vector Graphics. Review its formal syntax, computed behavior, and practical declarations.

CSS fill Property Reference

The CSS fill property is a standard property in Scalable Vector Graphics. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

fill overview

The CSS fill property is a standard property in Scalable Vector Graphics. Review its formal syntax, computed behavior, and practical declarations.

The computed value normally inherits from the parent element when no declaration wins the cascade.

Syntax and formal definition

fill formal syntax
FieldValue
Formal syntax<paint>
Initial valueblack
Applies tolimitedSVGElementsShapeText
InheritedYes
Percentagesno
Computed valueasColorOrAbsoluteURL
Animation typebyComputedValueType
Mediavisual
Specification groupScalable Vector Graphics
StatusStandard

Practical examples

These declarations demonstrate valid ways to set fill. The initial and inherit global keywords remain available even when a property-specific value is preferable.

fill live example
CSS .reset-example { fill: initial; } .inherit-example { fill: inherit; } @supports (fill: initial) { .supported { fill: initial; } }

Description

The CSS fill property is a standard property in Scalable Vector Graphics. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: fill
  2. MDN: CSS Properties Reference

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies