The color-rendering attribute provides a hint to the SVG user agent about how to optimize its color interpolation and compositing operations.
color-rendering takes precedence over color-interpolation-filters. For example, assume color-rendering: optimizeSpeed and color-interpolation-filters: linearRGB. In this case, the SVG user agent should perform color operations in a way that optimizes performance, which might mean sacrificing the color interpolation precision as specified by color-interpolation-filters: linearRGB.
As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet, see css color-rendering for further information
| Categories | Presentation attribute |
|---|---|
| Value | auto | optimizeSpeed | optimizeQuality | inherit |
| Animatable | Yes |
| Normative document | SVG 1.1 (2nd Edition) |
The following elements can use the color-rendering attribute
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/color-rendering