The primitives themselves are on the
filter elements page; this page lists their attributes by name. The explorer checks
the enumerated values (mode, type, operator,
edgeMode, the channel selectors) and the number lists of
stdDeviation and values.
Attributes by name
| Attribute | Element | Value | Default |
|---|---|---|---|
x, y, width, height, result | all primitives | subregion; a name | 0%, 0%, 100%, 100% of the filter region; no name |
in, in2 | feBlend, feColorMatrix, feComponentTransfer, feComposite, feConvolveMatrix, feDiffuseLighting, feDisplacementMap, feDropShadow, feGaussianBlur, feMergeNode, feMorphology, feOffset, feSpecularLighting, feTile (in2: feBlend, feComposite, feDisplacementMap) | a keyword or a result name | previous result |
mode | feBlend | normal, multiply, screen, darken, lighten, plus the CSS blend modes | normal |
type | feColorMatrix | matrix, saturate, hueRotate, luminanceToAlpha | matrix |
values | feColorMatrix | 20 numbers, 1 number, or none, by type | identity matrix; 1 for saturate; 0 for hueRotate |
type | feFuncR, feFuncG, feFuncB, feFuncA | identity, table, discrete, linear, gamma | required |
tableValues | feFunc* | list of numbers | empty |
slope, intercept | feFunc* (linear) | numbers | 1, 0 |
amplitude, exponent, offset | feFunc* (gamma) | numbers | 1, 1, 0 |
operator | feComposite | over, in, out, atop, xor, arithmetic, lighter | over |
operator | feMorphology | erode, dilate | erode |
k1, k2, k3, k4 | feComposite (arithmetic) | numbers | 0 |
order | feConvolveMatrix | one or two positive integers | 3 |
kernelMatrix | feConvolveMatrix | order × order numbers | required |
divisor, bias | feConvolveMatrix | numbers (divisor not 0) | sum of the kernel (1 if 0); 0 |
targetX, targetY | feConvolveMatrix | integers inside the kernel | ⌊order ÷ 2⌋ |
edgeMode | feConvolveMatrix, feGaussianBlur (Filter Effects) | duplicate, wrap, none | duplicate (convolve); none (blur) |
kernelUnitLength | feConvolveMatrix, feDiffuseLighting, feSpecularLighting | one or two numbers | the pixel size |
preserveAlpha | feConvolveMatrix | true, false | false |
surfaceScale | lighting primitives | number | 1 |
diffuseConstant | feDiffuseLighting | number, 0 or more | 1 |
specularConstant, specularExponent | feSpecularLighting; specularExponent also feSpotLight | numbers (exponent 1 to 128 for feSpecularLighting) | 1, 1 |
azimuth, elevation | feDistantLight | degrees | 0 |
x, y, z | fePointLight, feSpotLight | numbers | 0 |
pointsAtX, pointsAtY, pointsAtZ | feSpotLight | numbers | 0 |
limitingConeAngle | feSpotLight | degrees | no cone limit |
scale | feDisplacementMap | number | 0 |
xChannelSelector, yChannelSelector | feDisplacementMap | R, G, B, A | A |
dx, dy | feOffset; feDropShadow | numbers | 0; 2 |
stdDeviation | feGaussianBlur; feDropShadow | one or two numbers, not negative | 0; 2 |
radius | feMorphology | one or two numbers, not negative | 0 |
baseFrequency | feTurbulence | one or two numbers, not negative | 0 |
numOctaves, seed | feTurbulence | integer; number (rounded) | 1; 0 |
stitchTiles | feTurbulence | stitch, noStitch | noStitch |
type | feTurbulence | fractalNoise, turbulence | turbulence |
href, preserveAspectRatio, crossorigin | feImage | address or #id; alignment; fetch mode | none; xMidYMid meet |
flood-color, flood-opacity | feFlood, feDropShadow | colour; 0 to 1 (properties) | black; 1 |
lighting-color | lighting primitives | colour (property) | white |
color-interpolation-filters | all primitives | auto, sRGB, linearRGB (property) | linearRGB |
Not described
This page is partial.
Known, not yet covered
- Reference: defaults and ranges are not checked against SVG 1.1 chapter 15 and the Filter Effects Module, and not every range is given. The subregion rules and the attributes the Filter Effects Module adds beyond
edgeModeandfeDropShadoware not described. - Viewer: checks the enumerated values and the number lists of
stdDeviationandvalues, but notkernelMatrixlength againstorder,tableValues, light source numbers or the count offeColorMatrixvalues by type.