fill-opacity
Widely available97% of users
An SVG property that controls the transparency of the inner fill of a shape or text. A value of 0 is fully transparent, and 1 is fully opaque.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since April 2017. Widely available since October 2019.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
1- Inherited
- Yes
- Applies to
- a subset of SVG elements (shapes and text)
- Animation type
- byComputedValueType
Quick example
rect {
/* Makes the inner fill 50% transparent */
fill-opacity: 0.5;
}Values
opacityfill-opacity browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since .Safe to use without fallbacks.
Usage97%of people can use this3% use a browser without it.
Browsers
1+
1+
4+
≤15+Mobile
18+Android
4+Android
3.2+iOS