stop-color
Defines the color used at a specific 'stop' in an SVG gradient. It's applied to the <stop> element inside a <linearGradient> or <radialGradient>.
It is documented as part of the Scalable Vector Graphics specification.
Syntax
/* Usage Example */
stop.mid-point {
/* Sets the color of a specific point in an SVG gradient */
stop-color: #ff00ea;
}
/* Syntax */
stop-color: color;
/* Global values */
stop-color: inherit;
stop-color: initial;
stop-color: revert;
stop-color: revert-layer;
stop-color: unset;
stop-color 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+