fill-rule
An SVG property that determines how the interior of a complex shape (with overlapping paths) is filled with color.
It is documented as part of the Scalable Vector Graphics specification.
Syntax
/* Usage Example */
path {
/* Uses the even-odd rule to determine fill area */
fill-rule: evenodd;
}
/* Syntax */
fill-rule: nonzero;
fill-rule: evenodd;
/* Global values */
fill-rule: inherit;
fill-rule: initial;
fill-rule: revert;
fill-rule: revert-layer;
fill-rule: unset;
fill-rule Browser support
Widely available
Since
2020 96% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2020.
1+
3+
4+
15+