CSS fill-rule Property Reference

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

CSS fill-rule Property Reference

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

Updated 2026-08-12

fill-rule overview

The CSS fill-rule 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-rule formal syntax
FieldValue
Formal syntaxnonzero | evenodd
Initial valuenonzero
Applies tolimitedSVGElementsShapeText
InheritedYes
Percentagesno
Computed valueasSpecified
Animation typediscrete
Mediavisual
Specification groupScalable Vector Graphics
StatusStandard

Practical examples

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

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

Description

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

References

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

Similar or alternative tools

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