-
SVG 元素
-
A
-
<a>
-
<altGlyph>
-
<altGlyphDef>
-
<altGlyphItem>
-
<animate>
-
<animateColor>
-
<animateMotion>
-
<animateTransform>
-
B-C
-
<circle>
-
<clipPath>
-
<color-profile>
-
<cursor>
-
D
-
<defs>
-
<desc>
-
E
-
<ellipse>
-
F
-
<feBlend>
-
<feColorMatrix>
-
<feComponentTransfer>
-
<feComposite>
-
<feConvolveMatrix>
-
<feDiffuseLighting>
-
<feDisplacementMap>
-
<feDistantLight>
-
<feFlood>
-
<feFuncA>
-
<feFuncB>
-
<feFuncG>
-
<feFuncR>
-
<feGaussianBlur>
-
<feImage>
-
<feMerge>
-
<feMergeNode>
-
<feMorphology>
-
<feOffset>
-
<fePointLight>
-
<feSpecularLighting>
-
<feSpotLight>
-
<feTile>
-
<feTurbulence>
-
<filter>
-
<font>
-
<font-face>
-
<font-face-format>
-
<font-face-name>
-
<font-face-src>
-
<font-face-uri>
-
<foreignObject>
-
G
-
<g>
-
<glyph>
-
<glyphRef>
-
H
-
<hkern>
-
I
-
<image>
-
J-L
-
<line>
-
<linearGradient>
-
M
-
<marker>
-
<mask>
-
<metadata>
-
<missing-glyph>
-
<mpath>
-
N-P
-
<path>
-
<pattern>
-
<polygon>
-
<polyline>
-
Q-R
-
<radialGradient>
-
<rect>
-
S
-
<script>
-
<set>
-
<stop>
-
<style>
-
<svg>
-
<switch>
-
<symbol>
-
T
-
<text>
-
<textPath>
-
<title>
-
<tref>
-
<tspan>
-
U
-
<use>
-
V-Z
-
<view>
-
<vkern>
color-interpolation
attribute specifies the color space for gradient interpolations, color animations, and alpha compositing.
注意:
For filter effects, the
color-interpolation-filters
property controls which color space is used.
The color-interpolation property chooses between color operations occurring in the sRGB color space or in a (light energy linear) linearized RGB color space. Having chosen the appropriate color space, component-wise linear interpolation is used.
When a child element is blended into a background, the value of the
color-interpolation
property on the child determines the type of blending, not the value of the
color-interpolation
on the parent. For gradients which make use of the
href
or the deprecated
xlink:href
attribute to reference another gradient, the gradient uses the property's value from the gradient element which is directly referenced by the
fill
or
stroke
property. When animating colors, color interpolation is performed according to the value of the
color-interpolation
property on the element being animated.
注意:
As a presentation attribute,
color-interpolation
can be used as a CSS property.
You can use this attribute with the following SVG elements:
|
值
|
auto
|
sRGB
|
linearRGB
|
|
默认值
|
sRGB
|
|
Animatable
|
discrete
|
-
auto
Indicates that the user agent can choose either the
sRGB
or
linearRGB
spaces for color interpolation. This option indicates that the author doesn't require that color interpolation occur in a particular color space.
-
sRGB
Indicates that color interpolation should occur in the sRGB color space.
-
linearRGB
Indicates that color interpolation should occur in the linearized RGB color space as described in
the sRGB specification
.
BCD tables only load in the browser
Found a problem with this page?
最后修改:
,
由 MDN 贡献者