Search completed in 1.14 seconds.
SVG Presentation Attributes - SVG: Scalable Vector Graphics
text-anchor text-decoration text-rendering transform unicode-bidi vector-effect visibility word-spacing writing-mode Attributes alignment-baseline It specifies how an object is aligned along the font baseline with respect to its parent. ...
...t baseline with respect to its parent. Value: auto|baseline|before-edge|text-before-edge|middle|central|after-edge|text-after-edge|ideographic|alphabetic|hanging|mathematical|inherit;
Animatable: Yes baseline-shift It allows repositioning of the dominant-baseline relative to the dominant-baseline of the parent text content element. Value: auto|baseline|super|sub|<percentage>|<length>|inherit;
Animatable: Yes clip Deprecated It defines what portion of an element is visible. Value: auto|<shape()>|inherit;
Animatable: Yes clip-path It binds the element it is applied to with a given <clipPath> element. Value: none|<FuncIRI>|inherit;
Animatable: Yes clip-rule It indicates how to determine what side of a path is inside a shape in order to know how a <clipPath> should clip its target. Value: n...
...t defines what portion of an element is visible. Value: auto|<shape()>|inherit;
Animatable: Yes clip-path It binds the element it is applied to with a given <clipPath> element. Value: none|<FuncIRI>|inherit;
Animatable: Yes clip-rule It indicates how to determine what side of a path is inside a shape in order to know how a <clipPath> should clip its target. Value: nonezero|evenodd|inherit;
Animatable: Yes color It provides a potential indirect value (currentcolor) for the fill, stroke, stop-color, flood-color and lighting-color presentation attributes. Value: <color>|inherit;
Animatable: Yes color-interpolation It specifies the color space for gradient interpolations, color animations, and alpha compositing. ...
...And 25 more matches
x - SVG: Scalable Vector Graphics
org/2000/svg"> <rect x="20" y="20" width="60" height="60" /> <rect x="120" y="20" width="60" height="60" /> <rect x="220" y="20" width="60" height="60" /> </svg> altGlyph Warning: As of SVG2 <altGlyph> is deprecated and shouldn't be used. For <altGlyph>, x defines the x-axis coordinate of the alternate glyph. Value List of <length> Default value none
Animatable Yes feBlend For <feBlend>, x defines the minimum x coordinate for the rendering area of the primitive. Value <length> | <percentage> Default value 0%
Animatable Yes feColorMatrix For <feColorMatrix>, x defines the minimum x coordinate for the rendering area of the primitive. Value <length> | <percentage> Default value ...
... feBlend For <feBlend>, x defines the minimum x coordinate for the rendering area of the primitive. Value <length> | <percentage> Default value 0%
Animatable Yes feColorMatrix For <feColorMatrix>, x defines the minimum x coordinate for the rendering area of the primitive. Value <length> | <percentage> Default value 0%
Animatable Yes feComponentTransfer For <feComponentTransfer>, x defines the minimum x coordinate for the rendering area of the primitive. Value <length> | <percentage> Default value 0%
Animatable Yes feComposite For <feComposite>, x defines the minimum x coordinate for the rendering area of the primitive. Value <length> | <percentage> ...
... For <feComponentTransfer>, x defines the minimum x coordinate for the rendering area of the primitive. Value <length> | <percentage> Default value 0%
Animatable Yes feComposite For <feComposite>, x defines the minimum x coordinate for the rendering area of the primitive. Value <length> | <percentage> Default value 0%
Animatable Yes feConvolveMatrix For <feConvolveMatrix>, x defines the minimum x coordinate for the rendering area of the primitive. Value <length> | <percentage> Default value 0%
Animatable Yes feDiffuseLighting For <feDiffuseLighting>, x defines the minimum x coordinate for the rendering area of the primitive. Value <length> | <percentage...
...And 19 more matches
y - SVG: Scalable Vector Graphics
org/2000/svg"> <rect y="20" x="20" width="60" height="60" /> <rect y="120" x="20" width="60" height="60" /> <rect y="220" x="20" width="60" height="60" /> </svg> altGlyph Warning: As of SVG2 <altGlyph> is deprecated and shouldn't be used. For <altGlyph>, y defines the y-axis coordinate of the alternate glyph. Value List of <length> Default value none
Animatable Yes feBlend For <feBlend>, y defines the minimum y coordinate for the rendering area of the primitive. Value <length> | <percentage> Default value 0%
Animatable Yes feColorMatrix For <feColorMatrix>, y defines the minimum y coordinate for the rendering area of the primitive. Value <length> | <percentage> Default value ...
... feBlend For <feBlend>, y defines the minimum y coordinate for the rendering area of the primitive. Value <length> | <percentage> Default value 0%
Animatable Yes feColorMatrix For <feColorMatrix>, y defines the minimum y coordinate for the rendering area of the primitive. Value <length> | <percentage> Default value 0%
Animatable Yes feComponentTransfer For <feComponentTransfer>, y defines the minimum y coordinate for the rendering area of the primitive. Value <length> | <percentage> Default value 0%
Animatable Yes feComposite For <feComposite>, y defines the minimum y coordinate for the rendering area of the primitive. Value <length> | <percentage> ...
... For <feComponentTransfer>, y defines the minimum y coordinate for the rendering area of the primitive. Value <length> | <percentage> Default value 0%
Animatable Yes feComposite For <feComposite>, y defines the minimum y coordinate for the rendering area of the primitive. Value <length> | <percentage> Default value 0%
Animatable Yes feConvolveMatrix For <feConvolveMatrix>, y defines the minimum y coordinate for the rendering area of the primitive. Value <length> | <percentage> Default value 0%
Animatable Yes feDiffuseLighting For <feDiffuseLighting>, y defines the minimum y coordinate for the rendering area of the primitive. Value <length> | <percentage...
...And 19 more matches
height - SVG: Scalable Vector Graphics
> <!-- With a height of 0 or less, nothing will be rendered --> <rect y="0" x="0" width="90" height="0"/> <rect y="0" x="100" width="90" height="60"/> <rect y="0" x="200" width="90" height="100%"/> </svg> feBlend For <feBlend>, height defines the vertical length for the rendering area of the primitive. Value <length> | <percentage> Default value 100%
Animatable Yes feColorMatrix For <feColorMatrix>, height defines the vertical length for the rendering area of the primitive. Value <length> | <percentage> Default value 100%
Animatable Yes feComponentTransfer For <feComponentTransfer>, height defines the vertical length for the rendering area of the primitive. Value <length> | <percentage...
...Matrix>, height defines the vertical length for the rendering area of the primitive. Value <length> | <percentage> Default value 100%
Animatable Yes feComponentTransfer For <feComponentTransfer>, height defines the vertical length for the rendering area of the primitive. Value <length> | <percentage> Default value 100%
Animatable Yes feComposite For <feComposite>, height defines the vertical length for the rendering area of the primitive. Value <length> | <percentage> Default value 100%
Animatable Yes feConvolveMatrix For <feConvolveMatrix>, height defines the vertical length for the rendering area of the primitive. Value <length> | <percentage> ...
...<feComposite>, height defines the vertical length for the rendering area of the primitive. Value <length> | <percentage> Default value 100%
Animatable Yes feConvolveMatrix For <feConvolveMatrix>, height defines the vertical length for the rendering area of the primitive. Value <length> | <percentage> Default value 100%
Animatable Yes feDiffuseLighting For <feDiffuseLighting>, height defines the vertical length for the rendering area of the primitive. Value <length> | <percentage> Default value 100%
Animatable Yes feDisplacementMap For <feDisplacementMap>, height defines the vertical length for the rendering area of the primitive. Value <length> | <percen...
...And 12 more matches
width - SVG: Scalable Vector Graphics
> <!-- With a width of 0 or less, nothing will be rendered --> <rect x="0" y="0" width="0" height="90"/> <rect x="0" y="100" width="60" height="90"/> <rect x="0" y="200" width="100%" height="90"/> </svg> feBlend For <feBlend>, width defines the horizontal length for the rendering area of the primitive. Value <length> | <percentage> Default value 100%
Animatable Yes feColorMatrix For <feColorMatrix>, width defines the horizontal length for the rendering area of the primitive. Value <length> | <percentage> Default value 100%
Animatable Yes feComponentTransfer For <feComponentTransfer>, width defines the horizontal length for the rendering area of the primitive. Value <length> | <percenta...
...trix>, width defines the horizontal length for the rendering area of the primitive. Value <length> | <percentage> Default value 100%
Animatable Yes feComponentTransfer For <feComponentTransfer>, width defines the horizontal length for the rendering area of the primitive. Value <length> | <percentage> Default value 100%
Animatable Yes feComposite For <feComposite>, width defines the horizontal length for the rendering area of the primitive. Value <length> | <percentage> Default value 100%
Animatable Yes feConvolveMatrix For <feConvolveMatrix>, width defines the horizontal length for the rendering area of the primitive. Value <length> | <percentage> ...
...eComposite>, width defines the horizontal length for the rendering area of the primitive. Value <length> | <percentage> Default value 100%
Animatable Yes feConvolveMatrix For <feConvolveMatrix>, width defines the horizontal length for the rendering area of the primitive. Value <length> | <percentage> Default value 100%
Animatable Yes feDiffuseLighting For <feDiffuseLighting>, width defines the horizontal length for the rendering area of the primitive. Value <length> | <percentage> Default value 100%
Animatable Yes feDisplacementMap For <feDisplacementMap>, width defines the horizontal length for the rendering area of the primitive. Value <length> | <perc...
...And 12 more matches
xlink:href - SVG: Scalable Vector Graphics
radient>, <script>, <set>, <textPath>, <tref>, and <use>} html, body, svg { height: 100%; } <svg viewBox="0 0 160 40" xmlns="http://www.w3.org/2000/svg"> <a xlink:href="https://developer.mozilla.org/"><text x="10" y="25">MDN Web Docs</text></a> </svg> a For <a>, xlink:href defines the location of the referenced object. Value <iri> Default value None
Animatable Yes altGlyph For <altGlyph>, xlink:href defines the reference either to a <glyph> element in an SVG document fragment or to an <altGlyphDef> element. If the reference is to a <glyph> element and that glyph is available, then that glyph is rendered instead of the characters that are inside of the <altGlyph> element. If the reference is to an <altGlyphDef> element, then if an appro...
...ed instead of the characters that are inside of the <altGlyph> element. If the reference is to an <altGlyphDef> element, then if an appropriate set of alternate glyphs is located from processing the <altGlyphDef> element, then those alternate glyphs are rendered instead of the characters that are inside of the <altGlyph> element. Value <iri> Default value None
Animatable No animate, animateColor, animateMotion, animateTransform, set For <animate>, <animateColor>, <animateMotion>, <animateTransform>, and <set>, xlink:href defines the reference to the element which is the target of this animation and which therefore will be modified over time. The target element must be part of the current SVG document fragment. The value must point to exactly one targ...
...ng the target of the given animation. If the xlink:href attribute is not provided, the target element will be the immediate parent element of the current animation element. Refer to the descriptions of the individual animation elements for any restrictions on what types of elements can be targets of particular types of animations. ...
...And 9 more matches
fill - SVG: Scalable Vector Graphics
" r="20"> <animate attributeType="XML" attributeName="r" from="0" to="40" dur="5s" fill="freeze" /> </circle> </svg> altGlyph Warning: As of SVG2 <altGlyph> is deprecated and shouldn't be used. For <altGlyph>, fill is a presentation attribute that defines the color of the glyph. ...
... Value <paint> Default value black
Animatable Yes Note: As a presentation attribute fill can be used as a CSS property. animate For <animate>, fill defines the final state of the animation. Value freeze (Keep the state of the last animation frame) | remove (Keep the state of the first animation frame) Default value remove
Animatable No animateColor Warning: As of SVG Animation 2 <animateColor> is deprecated and shouldn't be used. Use <animate> instead. For <animateColor>, fill defines the final state of the animation. ...
... remove
Animatable No animateColor Warning: As of SVG Animation 2 <animateColor> is deprecated and shouldn't be used. Use <animate> instead. For <animateColor>, fill defines the final state of the animation. Value freeze (Keep the state of the last animation frame) | remove (Keep the state of the first animation frame) Default value remove
Animatable No animateMotion For <animateMotion>, fill defines the final state of the animation. Value freeze (Keep the state of the last animation frame) | remove (Keep the state of the first animation frame) Default value remove
Animatable No animateTransform For <animateTransform>, fill defines the final state of the animation. Value fre...
...And 8 more matches
href - SVG: Scalable Vector Graphics
>, <set>, <textPath>, and <use> html, body, svg { height: 100%; } <svg viewBox="0 0 160 40" xmlns="http://www.w3.org/2000/svg"> <a href="https://developer.mozilla.org/"><text x="10" y="25">MDN Web Docs</text></a> </svg> In SVG a For <a>, href defines the location of the referenced object, expressed as a URL reference. Value <url> Default value None
Animatable Yes animate, animateMotion, animateTransform, set For the <animate>, <animateMotion>, <animateTransform>, and <set>, href defines a URL referring to the element which is the target of this animation element and which therefore will be modified over time. The URL must point to exactly one target element which is capable of being the target of the given animation element. If the URL poi...
... elements for any restrictions on what types of elements can be targets of particular types of animations. Except for any SVG-specific rules explicitly mentioned in this specification, the normative definition for this attribute is the SMIL Animation specification. In particular, see SMIL Animation: Specifying the animation target. Value <url> Default value None
Animatable No discard For <discard>, href defines a URL referring the target element to discard. See the definition of href on animation elements for details on identifying a target element. Note: Unlike other animation elements, the <discard> element does not support the deprecated xlink:href attribute. Note that if the target element is not part of the current SVG document fragment, then wh...
...he deprecated xlink:href attribute. Note that if the target element is not part of the current SVG document fragment, then whether the target element will be removed or not is defined by the host language. If the href attribute is not provided, then the target element will be the immediate parent element of the <discard> element. Value <url> Default value None
Animatable No feImage For <feImage>, href defines a URL referring to an image resource or to an element. If both, the xlink:href and the href attribute are specified, the latter overrides the former. Value <url> Default value None
Animatable Yes image For <image>, href defines a URL referring to the image to render. Value <url> De...
...And 6 more matches
<radialGradient> - SVG: Scalable Vector Graphics
Gradient id="myGradient"> <stop offset="10%" stop-color="gold" /> <stop offset="95%" stop-color="red" /> </radialGradient> </defs> <!-- using my linear gradient --> <circle cx="5" cy="5" r="4" fill="url('#myGradient')" /> </svg> Attributes cx This attribute defines the x coordinate of the end circle of the radial gradient. ...
...> <!-- using my linear gradient --> <circle cx="5" cy="5" r="4" fill="url('#myGradient')" /> </svg> Attributes cx This attribute defines the x coordinate of the end circle of the radial gradient. Value type: <length> ; Default value: 50%;
Animatable: yes cy This attribute defines the y coordinate of the end circle of the radial gradient. Value type: <length> ; Default value: 50%;
Animatable: yes fr This attribute defines the radius of the start circle of the radial gradient. ...
...alue: 50%;
Animatable: yes cy This attribute defines the y coordinate of the end circle of the radial gradient. Value type: <length> ; Default value: 50%;
Animatable: yes fr This attribute defines the radius of the start circle of the radial gradient. The gradient will be drawn such that the 0% <stop> is mapped to the perimeter of the start circle. Value type: <length> ; Default value: 50%;
Animatable: yes fx This attribute defines the x coordinate of the start circle of the radial gradient. Value type: <length> ; Default value: Same as cx;
Animatable: yes fy This attribute defines the y coordinate of the start circle of the radial gradient. ...
...And 5 more matches
<marker> - SVG: Scalable Vector Graphics
" marker-start="url(#arrow)" marker-end="url(#arrow)" /> <!-- Data line with polymarkers --> <polyline points="15,80 29,50 43,60 57,30 71,40 85,15" fill="none" stroke="grey" marker-start="url(#dot)" marker-mid="url(#dot)" marker-end="url(#dot)" /> </svg> Attributes markerHeight This attribute defines the height of the marker viewport. ...
...rl(#dot)" marker-end="url(#dot)" /> </svg> Attributes markerHeight This attribute defines the height of the marker viewport. Value type: <length> ; Default value: 3;
Animatable: yes markerUnits This attribute defines the coordinate system for the attributes markerWidth, markerHeight and the contents of the <marker>. Value type: userSpaceOnUse|strokeWidth ; Default value: strokeWidth;
Animatable: yes markerWidth This attribute defines the width of the marker viewport. ...
...ort. Value type: <length> ; Default value: 3;
Animatable: yes markerUnits This attribute defines the coordinate system for the attributes markerWidth, markerHeight and the contents of the <marker>. Value type: userSpaceOnUse|strokeWidth ; Default value: strokeWidth;
Animatable: yes markerWidth This attribute defines the width of the marker viewport. Value type: <length> ; Default value: 3;
Animatable: yes orient This attribute defines the orientation of the marker relative to the shape it is attached to. Value type: auto|auto-start-reverse|<angle> ; Default value: 0;
Animatable: yes preserveAspectRatio This attribute defines how the svg fragment must be deformed if it is embedded in a container with a different aspect ratio. Value type: (none| xMinYMin| xMidYMin| xMaxYMin| xMinYMid| xMi...
...And 4 more matches
<a> - SVG: Scalable Vector Graphics
blue; } Since this element shares its tag name with HTML's <a> element, selecting a with CSS or querySelector may apply to the wrong kind of element. Try the @namespace rule to distinguish the two. Attributes download Instructs browsers to download a URL instead of navigating to it, so the user will be prompted to save it as a local file. ...
...or may apply to the wrong kind of element. Try the @namespace rule to distinguish the two. Attributes download Instructs browsers to download a URL instead of navigating to it, so the user will be prompted to save it as a local file. Value type: <string> ; Default value: none;
Animatable: no href The URL or URL fragment the hyperlink points to. Value type: <URL> ; Default value: none;
Animatable: yes hreflang The human language of the URL or URL fragment that the hyperlink points to. Value type: <string> ; Default value: none;
Animatable: yes ping A space-separated list of URLs to which, when the hyperlink is followed, POST requests with the body PING will be sent by the browser (in the background). Typically used for tracking. For a more widely-supported feature addressing the sa...
... Value type: <string> ; Default value: none;
Animatable: yes ping A space-separated list of URLs to which, when the hyperlink is followed, POST requests with the body PING will be sent by the browser (in the background). Typically used for tracking. For a more widely-supported feature addressing the same use cases, see Navigator.sendBeacon(). Value type: <list-of-URLs> ; Default value: none;
Animatable: no referrerpolicy Which referrer to send when fetching the URL. Value type: no-referrer|no-referrer-when-downgrade|same-origin|origin|strict-origin|origin-when-cross-origin|strict-origin-when-cross-origin|unsafe-url ; Default value: none;
Animatable: no rel The relationship of the target object to the link object. ...
...And 3 more matches
<altGlyph> - SVG: Scalable Vector Graphics
election of the glyphs used to render its child character data. Usage context CategoriesText content element, Text content child elementPermitted contentAny elements or character data Attributes x This attribute defines the corresponding absolute x-coordinates for rendering the element. Value type: <list-of-coordinates> ; Default value: Absolute x-coordinate of ancestor <text> or <tspan>;
Animatable: yes y This attribute defines the corresponding absolute y-coordinates for rendering the element. Value type: <list-of-coordinates> ; Default value: Absolute y-coordinate of ancestor <text> or <tspan>;
Animatable: yes dx This attribute indicates a shift along the x-axis on the position of the element. Value type: <list-of-coordinates> ; Default value: Relative x-coordinate of ancestor <text...
... attribute defines the corresponding absolute y-coordinates for rendering the element. Value type: <list-of-coordinates> ; Default value: Absolute y-coordinate of ancestor <text> or <tspan>;
Animatable: yes dx This attribute indicates a shift along the x-axis on the position of the element. Value type: <list-of-coordinates> ; Default value: Relative x-coordinate of ancestor <text> or <tspan>;
Animatable: yes dy This attribute indicates a shift along the x-axis on the position of the element. ...
... dx This attribute indicates a shift along the x-axis on the position of the element. Value type: <list-of-coordinates> ; Default value: Relative x-coordinate of ancestor <text> or <tspan>;
Animatable: yes dy This attribute indicates a shift along the x-axis on the position of the element. Value type: <list-of-coordinates> ; Default value: Relative y-coordinate of ancestor <text> or <tspan>;
Animatable: yes rotate This attribute defines the supplemental rotation that will be applied to the element. ...
...And 3 more matches
<pattern> - SVG: Scalable Vector Graphics
width="10%" height="10%"> <polygon points="0,0 2,5 0,10 5,8 10,10 8,5 10,0 5,2"/> </pattern> </defs> <circle cx="50" cy="50" r="50" fill="url(#star)"/> <circle cx="180" cy="50" r="40" fill="none" stroke-width="20" stroke="url(#star)"/> </svg> Attributes height This attribute determines the height of the pattern tile. ...
...> <circle cx="180" cy="50" r="40" fill="none" stroke-width="20" stroke="url(#star)"/> </svg> Attributes height This attribute determines the height of the pattern tile. Value type: <length>|<percentage>; Default value: 0;
Animatable: yes href This attribute reference a template pattern that provides default values for the <pattern> attributes. Value type: <URL>; Default value: none;
Animatable: yes patternContentUnits This attribute defines the coordinate system for the contents of the <pattern>. Value type: userSpaceOnUse|objectBoundingBox; Default value: userSpaceOnUse;
Animatable: yes Note: This attribute has no effect if a viewBox attribute is specified on the <pattern> element. patternTransform This attribute contains the definition of an optional additional transformation...
...erSpaceOnUse|objectBoundingBox; Default value: userSpaceOnUse;
Animatable: yes Note: This attribute has no effect if a viewBox attribute is specified on the <pattern> element. patternTransform This attribute contains the definition of an optional additional transformation from the pattern coordinate system onto the target coordinate system. Value type: <transform-list>; Default value: none;
Animatable: yes patternUnits This attribute defines the coordinate system for attributes x, y, width , and height. Value type: userSpaceOnUse|objectBoundingBox; Default value: objectBoundingBox;
Animatable: yes preserveAspectRatio This attribute defines how the SVG fragment must be deformed if it is embedded in a container with a different aspect ratio. Value type: (none| xMinYMin| xMidYMin| xMaxYMin|...
...And 3 more matches
<svg> - SVG: Scalable Vector Graphics
0 100" xmlns="http://www.w3.org/2000/svg" stroke="red" fill="grey"> <circle cx="50" cy="50" r="40" /> <circle cx="150" cy="50" r="4" /> <svg viewBox="0 0 10 10" x="200" width="100"> <circle cx="5" cy="5" r="4" /> </svg> </svg> Attributes baseProfile Deprecated since SVG 2 The minimum SVG language profile that the document requires. ...
...dth="100"> <circle cx="5" cy="5" r="4" /> </svg> </svg> Attributes baseProfile Deprecated since SVG 2 The minimum SVG language profile that the document requires. Value type: <string> ; Default value: none;
Animatable: no contentScriptType Deprecated since SVG 2 The default scripting language used by the SVG fragment. Value type: <string> ; Default value: application/ecmascript;
Animatable: no contentStyleType Deprecated since SVG 2 The default style sheet language used by the SVG fragment. ...
...t requires. Value type: <string> ; Default value: none;
Animatable: no contentScriptType Deprecated since SVG 2 The default scripting language used by the SVG fragment. Value type: <string> ; Default value: application/ecmascript;
Animatable: no contentStyleType Deprecated since SVG 2 The default style sheet language used by the SVG fragment. Value type: <string> ; Default value: text/css;
Animatable: no height The displayed height of the rectangular viewport. (Not the height of its coordinate system.) Value type: <length>|<percentage> ; Default value: auto;
Animatable: yes preserveAspectRatio How the svg fragment must be deformed if it is displayed with a different aspect ratio. Value type: (none| xMinYMin| xMidYMin| xMaxYMin| xMinYMid| xMidYMid| xMaxYMid| xMinYMax| xMidYMax| xMaxYMax)...
...And 3 more matches
SVG Core Attributes - SVG: Scalable Vector Graphics
The SVG core attributes are all the common attributes that can be specified on any SVG element. id lang tabindex xml:base xml:lang xml:space Attributes id Defines a unique identifier (ID) which must be unique in the whole document. Its purpose is to identify the element when linking (using a fragment identifier), scripting, or styling (with CSS). Value: Any valid ID string;
Animatable: No lang Participates in defining the language of the element, the language that non-editable elements are written in or the language that editable elements should be written in. The tag contains one single entry value in the format defined in the Tags for Identifying Languages (BCP47) IETF document. SVG 2 introduce the new lang attributes. If both lang and xml:lang attribute are used, xm...
...t, the language that non-editable elements are written in or the language that editable elements should be written in. The tag contains one single entry value in the format defined in the Tags for Identifying Languages (BCP47) IETF document. SVG 2 introduce the new lang attributes. If both lang and xml:lang attribute are used, xml:lang has priority over lang. ...
...F document. SVG 2 introduce the new lang attributes. If both lang and xml:lang attribute are used, xml:lang has priority over lang. Value: Any valid language ID;
Animatable: No tabindex The tabindex SVG attribute allows you to control whether an element is focusable and to define the relative order of the element for the purposes of sequential focus navigation. Value type: <integer>;
Animatable: No xml:base Specifies a base IRI other than the base IRI of the document. Value type: <IRI>;
Animatable: No xml:lang It is a universal attribute allowed in all XML dialects to mark up the natural human language that an element contains. It's almost identical in usage to HTML's lang, but in conforming XML 1.0 documents, it does not allow the use of a null attribute value (xml:lang="") to i...
...And 2 more matches
dx - SVG: Scalable Vector Graphics
efines a shift along the x-axis for all alternate glyph. If there are multiple values, dx defines a shift along the x-axis for each individual glyph relative to the preceding glyph. If there are less values than glyphs, the remaining glyphs use a value of 0. If there are more values than glyphs, extra values are ignored. Value List of <length> Default value none
Animatable Yes feDropShadow For <feDropShadow>, dx defines the x offset of the droped shadow. The unit used to resolve the value of the attribute is set by the primitiveUnits attribute of the <filter> element. Value <number> Default value 2
Animatable Yes feOffset For <feOffset>, dx defines the x offset of the filter input graphic. The unit used to res...
...primitiveUnits attribute of the <filter> element. Value <number> Default value 2
Animatable Yes feOffset For <feOffset>, dx defines the x offset of the filter input graphic. The unit used to resolve the value of the attribute is set by the primitiveUnits attribute of the <filter> element. Value <number> Default value 0
Animatable Yes glyphRef Warning: As of SVG2 <glyphRef> is deprecated and shouldn't be used. For <glyphRef>, dx defines the x offset of the glyph, in the font metric system. Value <number> Default value 0
Animatable Yes text For <text>, if it contains a single value, dx defines a shift along the x-axis for all glyphs. If there are multiple values, dx ...
...lue, dx defines a shift along the x-axis for all glyphs. If there are multiple values, dx defines a shift along the x-axis for each individual glyph relative to the preceding glyph. If there are less values than glyphs, the remaining glyphs use a value of 0. If there are more values than glyphs, extra values are ignored. ...
...And 2 more matches
dy - SVG: Scalable Vector Graphics
nes a shift along the y-axis for all alternate glyph. If there are multiple values, dy defines a shift along the y-axis for each individual glyph relative to the preceding glyph. If there are less values than glyphes, the remaining glyphes use a value of 0. If there are more values than glyphes, extra values are ignored. Value List of <length> Default value none
Animatable Yes feDropShadow For <feDropShadow>, dy defines the y offset of the dropped shadow. The unit used to resolve the value of the attribute is set by the primitiveUnits attribute of the <filter> element. Value <number> Default value 2
Animatable Yes feOffset For <feOffset>, dy defines the y offset of the filter input graphic. The unit used to re...
...primitiveUnits attribute of the <filter> element. Value <number> Default value 2
Animatable Yes feOffset For <feOffset>, dy defines the y offset of the filter input graphic. The unit used to resolve the value of the attribute is set by the primitiveUnits attribute of the <filter> element. Value <number> Default value 0
Animatable Yes glyphRef Warning: As of SVG2 <glyphRef> is deprecated and shouldn't be used. For <glyphRef>, dy defines the y offset of the glyph, in the font metric system. Value <number> Default value 0
Animatable Yes text For <text>, if it contains a single value, dy defines a shift along the y-axis for all glyphs. If there are multiple values, dy ...
..., dy defines a shift along the y-axis for all glyphs. If there are multiple values, dy defines a shift along the y-axis for each individual glyph relative to the preceding glyph. If there are less values than glyphes, the remaining glyphes use a value of 0. If there are more values than glyphes, extra values are ignored. ...
...And 2 more matches
pathLength - SVG: Scalable Vector Graphics
ything like if the path length was 30 user units long --> <path d="M 0,40 h100" pathLength="30"/> <!-- compute everything like if the path length was 10 user units long --> <path d="M 0,50 h100" pathLength="10"/> </svg> circle For <circle>, pathLength lets authors specify a total length for the circle, in user units. ...
... h100" pathLength="10"/> </svg> circle For <circle>, pathLength lets authors specify a total length for the circle, in user units. Value <number> Default value none
Animatable Yes ellipse For <ellipse>, pathLength lets authors specify a total length for the ellipse, in user units. Value <number> Default value none
Animatable Yes line For <line>, pathLength lets authors specify a total length for the line, in user units. ...
... none
Animatable Yes ellipse For <ellipse>, pathLength lets authors specify a total length for the ellipse, in user units. Value <number> Default value none
Animatable Yes line For <line>, pathLength lets authors specify a total length for the line, in user units. Value <number> Default value none
Animatable Yes path For <path>, pathLength lets authors specify a total length for the path, in user units. Value <number> Default value none
Animatable Yes polygon For <polygon>, pathLength lets authors specify a total length for the shape, in user units. ...
...And 2 more matches
<linearGradient> - SVG: Scalable Vector Graphics
et="5%" stop-color="gold" /> <stop offset="95%" stop-color="red" /> </linearGradient> </defs> <!-- using my linear gradient --> <circle cx="5" cy="5" r="4" fill="url('#myGradient')" /> </svg> Attributes gradientUnits This attribute defines the coordinate system for attributes x1, x2, y1, y2 Value type: userSpaceOnUse|objectBoundingBox ; Default value: objectBoundingBox;
Animatable: yes gradientTransform This attribute provides additional transformation to the gradient coordinate system. Value type: <transform-list> ; Default value: identity transform;
Animatable: yes href This attribute defines a reference to another <linearGradient> element that will be used as a template. Value type: <URL> ; Default value: none;
Animatable: yes spreadMethod This attribute indicat...
...dentity transform;
Animatable: yes href This attribute defines a reference to another <linearGradient> element that will be used as a template. Value type: <URL> ; Default value: none;
Animatable: yes spreadMethod This attribute indicates how the gradient behaves if it starts or ends inside the bounds of the shape containing the gradient. Value type: pad|reflect|repeat ; Default value: pad;
Animatable: yes x1 This attribute defines the x coordinate of the starting point of the vector gradient along which the linear gradient is drawn. Value type: <length> ; Default value: 0%;
Animatable: yes x2 This attribute defines the x coordinate of the ending point of the vector gradient along which the linear gradient is drawn. ...
...fault value: pad;
Animatable: yes x1 This attribute defines the x coordinate of the starting point of the vector gradient along which the linear gradient is drawn. Value type: <length> ; Default value: 0%;
Animatable: yes x2 This attribute defines the x coordinate of the ending point of the vector gradient along which the linear gradient is drawn. Value type: <length> ; Default value: 100%;
Animatable: yes xlink:href An <IRI> reference to another <linearGradient> element that will be used as a template. Value type: <IRI> ; Default value: none;
Animatable: yes y1 This attribute defines the y coordinate of the starting point of the vector gradient along which the linear gradient is drawn. ...
...And 2 more matches
<symbol> - SVG: Scalable Vector Graphics
" /> <use xlink:href="#myDot" x="20" y="5" style="opacity:0.8" /> <use xlink:href="#myDot" x="35" y="5" style="opacity:0.6" /> <use xlink:href="#myDot" x="50" y="5" style="opacity:0.4" /> <use xlink:href="#myDot" x="65" y="5" style="opacity:0.2" /> </svg> Attributes height This attribute determines the height of the symbol. ...
... height of the symbol. Value type: <length>|<percentage> ; Default value: auto;
Animatable: yes preserveAspectRatio This attribute defines how the svg fragment must be deformed if it is embedded in a container with a different aspect ratio. Value type: (none| xMinYMin| xMidYMin| xMaxYMin| xMinYMid| xMidYMid| xMaxYMid| xMinYMax| xMidYMax| xMaxYMax) (meet|slice)? ...
...ed if it is embedded in a container with a different aspect ratio. Value type: (none| xMinYMin| xMidYMin| xMaxYMin| xMinYMid| xMidYMid| xMaxYMid| xMinYMax| xMidYMax| xMaxYMax) (meet|slice)? ; Default value: xMidYMid meet;
Animatable: yes refX This attribute determines the x coordinate of the reference point of the symbol. Value type: <length>|<percentage>|left|center|right ; Default value: 0;
Animatable: yes refY This attribute determines the y coordinate of the reference point of the symbol. Value type: <length>|<percentage>|top|center|bottom ; Default value: 0;
Animatable: yes viewBox This attribute defines the bound of the SVG viewport for the current symbol. Value type: <list-of-numbers> ; Default value: none;
Animatable: yes width This attribute determines the width of the symbol. ...
...And 2 more matches
<textPath> - SVG: Scalable Vector Graphics
d="M10,90 Q90,90 90,45 Q90,10 50,10 Q10,10 10,40 Q10,70 45,70 Q70,70 75,50" /> <!-- </defs> --> <text> <textPath href="#MyPath"> Quick brown fox jumps over the lazy dog. </textPath> </text> </svg> Attributes href The URL to the path or basic shape on which to render the text. If the path attribute is set, href has no effect. ...
... Attributes href The URL to the path or basic shape on which to render the text. If the path attribute is set, href has no effect. Value type: <URL> ; Default value: none;
Animatable: yes lengthAdjust Where length adjustment should be applied to the text: the space between glyphs, or both the space and the glyphs themselves. Value type: spacing|spacingAndGlyphs; Default value: spacing;
Animatable: yes method Which method to render individual glyphs along the path. Value type: align|stretch ; Default value: align;
Animatable: yes path The path on which the text should be rendered. ...
...d to the text: the space between glyphs, or both the space and the glyphs themselves. Value type: spacing|spacingAndGlyphs; Default value: spacing;
Animatable: yes method Which method to render individual glyphs along the path. Value type: align|stretch ; Default value: align;
Animatable: yes path The path on which the text should be rendered. Value type: <path_data> ; Default value: none;
Animatable: yes side Which side of the path the text should be rendered. Value type: left|right ; Default value: left;
Animatable: yes spacing How space between glyphs should be handled. Value type: auto|exact ; Default value: exact;
Animatable: yes startOffset How far the beginning of the text should be offset from the beginning of the path. Value type: <length>|<percentage>|<number> ; Default val...
...And 2 more matches
preserveAspectRatio - SVG: Scalable Vector Graphics
ox will draw is larger than the viewport). Elements Seven elements are using this attribute: <svg>, <symbol>, <image>, <feImage>, <marker>, <pattern>, and <view>. feImage For <feImage>, preserveAspectRatio defines how the referenced image should fit in the rectangle define by the <feImage> element. Value <align> <meetOrSlice>? Default value xMidYMid meet
Animatable Yes image For <image>, preserveAspectRatio defines how the referenced image should fit in the rectangle define by the <image> element. Value <align> <meetOrSlice>? Default value xMidYMid meet
Animatable Yes marker For <marker>, preserveAspectRatio indicates if a uniform scaling must be performed to fit the element viewport. Value ...
...erenced image should fit in the rectangle define by the <image> element. Value <align> <meetOrSlice>? Default value xMidYMid meet
Animatable Yes marker For <marker>, preserveAspectRatio indicates if a uniform scaling must be performed to fit the element viewport. Value <align> <meetOrSlice>? Default value xMidYMid meet
Animatable Yes pattern For <pattern>, preserveAspectRatio indicates if a uniform scaling must be performed to fit the element viewport. Value <align> <meetOrSlice>? Default value xMidYMid meet
Animatable Yes svg For <svg>, preserveAspectRatio indicates if a uniform scaling must be performed to fit the element viewport. Value <align> <meetO...
... indicates if a uniform scaling must be performed to fit the element viewport. Value <align> <meetOrSlice>? Default value xMidYMid meet
Animatable Yes svg For <svg>, preserveAspectRatio indicates if a uniform scaling must be performed to fit the element viewport. Value <align> <meetOrSlice>? Default value xMidYMid meet
Animatable Yes symbol For <symbol>, preserveAspectRatio indicates if a uniform scaling must be performed to fit the element viewport. Value <align> <meetOrSlice>? Default value xMidYMid meet
Animatable Yes view For <view>, preserveAspectRatio indicates if a uniform scaling must be performed to fit the element viewport. Value <align> <meetO...
...ndicates if a uniform scaling must be performed to fit the element viewport. Value <align> <meetOrSlice>? Default value xMidYMid meet
Animatable Yes view For <view>, preserveAspectRatio indicates if a uniform scaling must be performed to fit the element viewport. Value <align> <meetOrSlice>? Default value xMidYMid meet
Animatable Yes Specification Specification Status Comment Filter Effects Module Level 1The definition of 'preserveAspectRatio' in that specification. Working Draft Scalable Vector Graphics (SVG) 2The definition of 'preserveAspectRatio' in that specification. Candidate Recommendation Scalable Vector Graphics (SVG) 1.1 (Second Edition)Th...
<ellipse> - SVG: Scalable Vector Graphics
pse (if, for example, you wanted to draw an ellipse tilted at a 45 degree angle), but it can be rotated by using the transform attribute. html,body,svg { height:100% } <svg viewBox="0 0 200 100" xmlns="http://www.w3.org/2000/svg"> <ellipse cx="100" cy="50" rx="100" ry="50" /> </svg> Attributes cx The x position of the ellipse. ...
...using the transform attribute. html,body,svg { height:100% } <svg viewBox="0 0 200 100" xmlns="http://www.w3.org/2000/svg"> <ellipse cx="100" cy="50" rx="100" ry="50" /> </svg> Attributes cx The x position of the ellipse. Value type: <length>|<percentage> ; Default value: 0;
Animatable: yes cy The y position of the ellipse. Value type: <length>|<percentage> ; Default value: 0;
Animatable: yes rx The radius of the ellipse on the x axis. ...
...vg"> <ellipse cx="100" cy="50" rx="100" ry="50" /> </svg> Attributes cx The x position of the ellipse. Value type: <length>|<percentage> ; Default value: 0;
Animatable: yes cy The y position of the ellipse. Value type: <length>|<percentage> ; Default value: 0;
Animatable: yes rx The radius of the ellipse on the x axis. Value type: auto|<length>|<percentage> ; Default value: auto;
Animatable: yes ry The radius of the ellipse on the y axis. Value type: auto|<length>|<percentage> ; Default value: auto;
Animatable: yes pathLength This attribute lets specify the total length for the path, in user units. ...
...;
Animatable: yes rx The radius of the ellipse on the x axis. Value type: auto|<length>|<percentage> ; Default value: auto;
Animatable: yes ry The radius of the ellipse on the y axis. Value type: auto|<length>|<percentage> ; Default value: auto;
Animatable: yes pathLength This attribute lets specify the total length for the path, in user units. Value type: <number> ; Default value: none;
Animatable: yes Note: Starting with SVG2 cx, cy, rx and ry are Geometry Properties, meaning those attributes can also be used as CSS properties for that element. Global attributes Core Attributes Most notably: id, tabindex Styling Attributes class, style Conditional Processing Attributes Most notably: requiredExtensions, systemLanguage Event Attributes Global event attributes, Graphical event...
<script> - SVG: Scalable Vector Graphics
toString(16).padStart(2,'0') return `#${R}${G}${B}` } document.querySelector('circle').addEventListener('click', (e) => { e.target.style.fill = getColor() }) }) // ]]> </script> <circle cx="5" cy="5" r="4" /> </svg> Attributes crossorigin This attribute defines CORS settings as define for the HTML <script> element. ...
...cle').addEventListener('click', (e) => { e.target.style.fill = getColor() }) }) // ]]> </script> <circle cx="5" cy="5" r="4" /> </svg> Attributes crossorigin This attribute defines CORS settings as define for the HTML <script> element. Value type: <string>; Default value: ?;
Animatable: yes href The URL to the script to load. Value type: <URL> ; Default value: none;
Animatable: no type This attribute defines type of the script language to use. ...
... /> </svg> Attributes crossorigin This attribute defines CORS settings as define for the HTML <script> element. Value type: <string>; Default value: ?;
Animatable: yes href The URL to the script to load. Value type: <URL> ; Default value: none;
Animatable: no type This attribute defines type of the script language to use. Value type: <string>; Default value: application/ecmascript;
Animatable: no xlink:href Deprecated since SVG 2 The URL to the script to load. ...
...ue type: <string>; Default value: ?;
Animatable: yes href The URL to the script to load. Value type: <URL> ; Default value: none;
Animatable: no type This attribute defines type of the script language to use. Value type: <string>; Default value: application/ecmascript;
Animatable: no xlink:href Deprecated since SVG 2 The URL to the script to load. ...
<text> - SVG: Scalable Vector Graphics
*/ .Rrrrr { font: italic 40px serif; fill: red; } </style> <text x="20" y="35" class="small">My</text> <text x="40" y="35" class="heavy">cat</text> <text x="55" y="55" class="small">is</text> <text x="65" y="55" class="Rrrrr">Grumpy!</text> </svg> Attributes x The x coordinate of the starting point of the text baseline. Value type: <length>|<percentage> ; Default value: 0;
Animatable: yes y The y coordinate of the starting point of the text baseline. Value type: <length>|<percentage> ; Default value: 0;
Animatable: yes dx Shifts the text position horizontally from a previous text element. Value type: <length>|<percentage> ; Default value: none;
Animatable: yes dy Shifts the text position vertically from a previous text element. Value type: <length>|<percentage> ; Def...
...ordinate of the starting point of the text baseline. Value type: <length>|<percentage> ; Default value: 0;
Animatable: yes dx Shifts the text position horizontally from a previous text element. Value type: <length>|<percentage> ; Default value: none;
Animatable: yes dy Shifts the text position vertically from a previous text element. Value type: <length>|<percentage> ; Default value: none;
Animatable: yes rotate Rotates orientation of each individual glyph. Can rotate glyphs individually. Value type: <list-of-number> ; Default value: none;
Animatable: yes lengthAdjust How the text is stretched or compressed to fit the width defined by the textLength attribute. ...
...alue type: <length>|<percentage> ; Default value: none;
Animatable: yes rotate Rotates orientation of each individual glyph. Can rotate glyphs individually. Value type: <list-of-number> ; Default value: none;
Animatable: yes lengthAdjust How the text is stretched or compressed to fit the width defined by the textLength attribute. Value type: spacing|spacingAndGlyphs; Default value: spacing;
Animatable: yes textLength A width that the text should be scaled to fit. ...
...ate glyphs individually. Value type: <list-of-number> ; Default value: none;
Animatable: yes lengthAdjust How the text is stretched or compressed to fit the width defined by the textLength attribute. Value type: spacing|spacingAndGlyphs; Default value: spacing;
Animatable: yes textLength A width that the text should be scaled to fit. ...
<tspan> - SVG: Scalable Vector Graphics
40 40" xmlns="http://www.w3.org/2000/svg"> <style> text { font: italic 12px serif; } tspan { font: bold 10px sans-serif; fill: red; } </style> <text x="10" y="30" class="small"> You are <tspan>not</tspan> a banana! </text> </svg> Attributes x The x coordinate of the starting point of the text baseline. Value type: <length>|<percentage> ; Default value: none;
Animatable: yes y The y coordinate of the starting point of the text baseline. Value type: <length>|<percentage> ; Default value: none;
Animatable: yes dx Shifts the text position horizontally from a previous text element. Value type: <length>|<percentage> ; Default value: none;
Animatable: yes dy Shifts the text position vertically from a previous text element. Value type: <length>|<percentage> ; ...
...inate of the starting point of the text baseline. Value type: <length>|<percentage> ; Default value: none;
Animatable: yes dx Shifts the text position horizontally from a previous text element. Value type: <length>|<percentage> ; Default value: none;
Animatable: yes dy Shifts the text position vertically from a previous text element. Value type: <length>|<percentage> ; Default value: none;
Animatable: yes rotate Rotates orientation of each individual glyph. Can rotate glyphs individually. Value type: <list-of-number> ; Default value: none;
Animatable: yes lengthAdjust How the text is stretched or compressed to fit the width defined by the textLength attribute. ...
...alue type: <length>|<percentage> ; Default value: none;
Animatable: yes rotate Rotates orientation of each individual glyph. Can rotate glyphs individually. Value type: <list-of-number> ; Default value: none;
Animatable: yes lengthAdjust How the text is stretched or compressed to fit the width defined by the textLength attribute. Value type: spacing|spacingAndGlyphs; Default value: spacing;
Animatable: yes textLength A width that the text should be scaled to fit. ...
...ate glyphs individually. Value type: <list-of-number> ; Default value: none;
Animatable: yes lengthAdjust How the text is stretched or compressed to fit the width defined by the textLength attribute. Value type: spacing|spacingAndGlyphs; Default value: spacing;
Animatable: yes textLength A width that the text should be scaled to fit. ...
SVG Conditional Processing Attributes - SVG: Scalable Vector Graphics
t the element on which it appears should be rendered. externalResourcesRequired requiredExtensions requiredFeatures systemLanguage Attributes externalResourcesRequired Deprecated since SVG 2 If set to true, it indicates that the browser must wait for all the external resources necessary to render that element to be loaded before processing the associated element. ...
... If set to true, it indicates that the browser must wait for all the external resources necessary to render that element to be loaded before processing the associated element. Value: false|true;
Animatable: No requiredExtensions List all the browser specific capabilities that must be supported by the borwser to be allowed to render the associated element. Value: A list of space-separated URI;
Animatable: No requiredFeatures Deprecated since SVG 2 List all the features, as defined is the SVG 1.1 specification, that must be supported by the borwser to be allowed to render the associated element.. Value: A list of space-separated URI;
Animatable: No systemLanguage Indicates which language the user must have chosen to render the associated element. Value: A list of comma-separated language ID;...
... No requiredFeatures Deprecated since SVG 2 List all the features, as defined is the SVG 1.1 specification, that must be supported by the borwser to be allowed to render the associated element.. Value: A list of space-separated URI;
Animatable: No systemLanguage Indicates which language the user must have chosen to render the associated element. Value: A list of comma-separated language ID;
Animatable: No ...
cx - SVG: Scalable Vector Graphics
hite" /> <stop offset="100%" stop-color="black" /> </radialGradient> <circle cx="50" cy="50" r="45"/> <ellipse cx="150" cy="50" rx="45" ry="25" /> <rect x="205" y="5" width="90" height="90" fill="url(#myGradient)" /> </svg> circle For <circle>, cx defines the x-axis coordinate of the center of the shape. ...
... of the shape. Value <length-percentage> Default value 0
Animatable Yes Note: Starting with SVG2 cx, is a Geometry Property, meaning this attribute can also be used as CSS property for circles. ellipse For <ellipse>, cx defines the x-axis coordinate of the center of the shape. Value <length-percentage> Default value 0
Animatable Yes Note: Starting with SVG2 cx, is a Geometry Property, meaning this attribute can also be used as CSS property for ellipses. radialGradient For <radialGradient>, cx defines the x-axis coordinate of the end circle for the radial gradient. ...
... Value <length-percentage> Default value 0
Animatable Yes Note: Starting with SVG2 cx, is a Geometry Property, meaning this attribute can also be used as CSS property for ellipses. radialGradient For <radialGradient>, cx defines the x-axis coordinate of the end circle for the radial gradient. ...
cy - SVG: Scalable Vector Graphics
/> <stop offset="100%" stop-color="black" /> </radialGradient> <circle cy="50" cx="50" r="45"/> <ellipse cy="150" cx="50" rx="45" ry="25" /> <rect x="5" y="205" width="90" height="90" fill="url(#myGradient)" /> </svg> circle For <circle>, cy defines the y-axis coordinate of the center of the shape. ...
...hape. Value <length> | <percentage> Default value 0
Animatable Yes Note: Starting with SVG2, cy is a Geometry Property meaning this attribute can also be used as a CSS property for circles. ellipse For <ellipse>, cy defines the y-axis coordinate of the center of the shape. Value <length> | <percentage> Default value 0
Animatable Yes Note: Starting with SVG2, cy is a Geometry Property meaning this attribute can also be used as a CSS property for ellipses. radialGradient For <radialGradient>, cy defines the y-axis coordinate of the end circle for the radial gradient. ...
...alue <length> | <percentage> Default value 0
Animatable Yes Note: Starting with SVG2, cy is a Geometry Property meaning this attribute can also be used as a CSS property for ellipses. radialGradient For <radialGradient>, cy defines the y-axis coordinate of the end circle for the radial gradient. ...
in2 - SVG: Scalable Vector Graphics
<feBlend>, <feComposite> and <feDisplacementMap>. feBlend For <feBlend>, in2 defines the second input image to the blending operation. ...
...itive
Animatable Yes feComposite For <feComposite>, in2 defines the second input image to the compositing operation. Value SourceGraphic | SourceAlpha | BackgroundImage | BackgroundAlpha | FillPaint | StrokePaint | <filter-primitive-reference> Default value SourceGraphic for first filter primitive, otherwise result of previous filter primitive
Animatable Yes feDisplacementMap For <feDisplacementMap>, in2 defines the second input image, which is used to displace the pixels in the image defined in the in attribute. Value SourceGraphic | SourceAlpha | BackgroundImage | BackgroundAlpha | FillPaint | StrokePaint | <filter-primitive-reference> Default value SourceGraphic for first filter primitive, otherwise result o...
... <feDisplacementMap>, in2 defines the second input image, which is used to displace the pixels in the image defined in the in attribute. Value SourceGraphic | SourceAlpha | BackgroundImage | BackgroundAlpha | FillPaint | StrokePaint | <filter-primitive-reference> Default value SourceGraphic for first filter primitive, otherwise result of previous filter primitive
Animatable Yes Specifications Specification Status Comment Filter Effects Module Level 1The definition of 'in2 for <feDisplacementMap>' in that specification. Working Draft No change Filter Effects Module Level 1The definition of 'in2 for <feComposite>' in that specification. Working Draft No change Filter Effects Module Level 1The definit...
kernelUnitLength - SVG: Scalable Vector Graphics
d in a scalable, abstract coordinate system. If the attribute is not specified, the default value is one pixel in the offscreen bitmap, which is a pixel-based coordinate system, and thus potentially not scalable. If a negative or zero value is specified the default value will be used instead. Value <number-optional-number> Default value Pixel in offscreen bitmap
Animatable Yes <number-optional-number> The first number is the x value. The second number is the y value. If the x value is not specified, it defaults to the same value as x. feDiffuseLighting For the <feDiffuseLighting>, kernelUnitLength indicates the intended distance in current filter units (i.e., units as determined by the value of attribute primitiveUnits) for the x and y coordinate, r...
... deltas relative to a given position, which might be implemented in some cases as one pixel in the intermediate image offscreen bitmap, which is a pixel-based coordinate system, and thus potentially not scalable. If a negative or zero value is specified the default value will be used instead. Value <number-optional-number> Default value Pixel in offscreen bitmap
Animatable Yes feSpecularLighting For the <feSpecularLighting>, kernelUnitLength indicates the intended distance in current filter units (i.e., units as determined by the value of attribute primitiveUnits) for the x and y coordinate, respectively, in the surface normal calculation formulas. The first number is the x value. The second number is the y value. If the y value is not specified, it d...
...eltas relative to a given position, which might be implemented in some cases as one pixel in the intermediate image offscreen bitmap, which is a pixel-based coordinate system, and thus potentially not scalable. If a negative or zero value is specified the default value will be used instead. Value <number-optional-number> Default value Pixel in offscreen bitmap
Animatable Yes Specifications Specification Status Comment Filter Effects Module Level 1The definition of 'kernelUnitLength for <feSpecularLighting>' in that specification. Working Draft Marked the attribute as deprecated. Filter Effects Module Level 1The definition of 'kernelUnitLength for <feDiffuseLighting>' in that specification. Working Draft ...
type - SVG: Scalable Vector Graphics
the type of component transfer function. For the <feTurbulence> element, it indicates whether the filter primitive should perform a noise or turbulence function. For the <style> and <script> elements, it defines the content type of the element. ...
... the content type of the element. ...
...2nd Edition) For the <feColorMatrix> element Categories None Value matrix | saturate | hueRotate | luminanceToAlpha
Animatable Yes Normative document SVG 1.1 (2nd Edition) For the <feFuncR>, <feFuncG>, <feFuncB>, and <feFuncA> elements Categories None Value identity | table | discrete | linear | gamma
Animatable Yes Normative document SVG 1.1 (2nd Edition) For the <feTurbulence> element Categories None Value fractalNoise | turbulence
Animatable Yes Normative document SVG 1.1 (2nd Edition) For the <style> and <script> elements Categories None Value <content-type>
Animatable No Normat...
viewBox - SVG: Scalable Vector Graphics
o attribute. Note: Values for width or height lower or equal to 0 disable rendering of the element. Five elements are using this attribute: <marker>, <pattern>, <svg>, <symbol>, and <view>. marker For <marker>, viewBox defines the position and dimension for the content of the <marker> element. Value <number>?, <number>?, <number>?, <number> Default value none
Animatable Yes pattern For <pattern>, viewBox defines the position and dimension for the content of the pattern tile. Value <number>?, <number>?, <number>?, <number> Default value none
Animatable Yes svg For <svg>, viewBox defines the position and dimension for the content of the <svg> element. Value <number>?, <number>?, <number>?, <numbe...
...Box defines the position and dimension for the content of the pattern tile. Value <number>?, <number>?, <number>?, <number> Default value none
Animatable Yes svg For <svg>, viewBox defines the position and dimension for the content of the <svg> element. Value <number>?, <number>?, <number>?, <number> Default value none
Animatable Yes symbol For <symbol>, viewBox defines the position and dimension for the content of the <symbol> element. Value <number>?, <number>?, <number>?, <number> Default value none
Animatable Yes view For <view>, viewBox defines the position and dimension for the content of the <view> element. Value <number>?, <number>?, <number>?, <...
...ines the position and dimension for the content of the <symbol> element. Value <number>?, <number>?, <number>?, <number> Default value none
Animatable Yes view For <view>, viewBox defines the position and dimension for the content of the <view> element. Value <number>?, <number>?, <number>?, <number> Default value none
Animatable Yes Specification Specification Status Comment Scalable Vector Graphics (SVG) 2The definition of 'viewBox' in that specification. Candidate Recommendation Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'viewBox' in that specification. Recommendation Initial definition ...
<animateMotion> - SVG: Scalable Vector Graphics
20,-50 180,150 180,50 C180-50 20,150 20,50 z" /> </circle> </svg> Usage context CategoriesAnimation elementPermitted contentAny number of the following elements, in any order:Descriptive elements<mpath> Attributes keyPoints This attribute indicate, in the range [0,1], how far is the object along the path for each keyTimes associated values. ...
...ing elements, in any order:Descriptive elements<mpath> Attributes keyPoints This attribute indicate, in the range [0,1], how far is the object along the path for each keyTimes associated values. Value type: <number>*; Default value: none;
Animatable: no path This attribute defines the path of the motion, using the same syntax as the d attribute. Value type: <string>; Default value: none;
Animatable: no rotate This attribute defines a rotation applied to the elment animated along a path, usually to make it pointing in the direction of the animation. ...
...efault value: none;
Animatable: no path This attribute defines the path of the motion, using the same syntax as the d attribute. Value type: <string>; Default value: none;
Animatable: no rotate This attribute defines a rotation applied to the elment animated along a path, usually to make it pointing in the direction of the animation. ...
<circle> - SVG: Scalable Vector Graphics
The <circle> SVG element is an SVG basic shape, used to draw circles based on a center point and a radius. html,body,svg { height:100% } <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <circle cx="50" cy="50" r="50"/> </svg> Attributes cx The x-axis coordinate of the center of the circle. ...
...ius. html,body,svg { height:100% } <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <circle cx="50" cy="50" r="50"/> </svg> Attributes cx The x-axis coordinate of the center of the circle. Value type: <length>|<percentage> ; Default value: 0;
Animatable: yes cy The y-axis coordinate of the center of the circle. Value type: <length>|<percentage> ; Default value: 0;
Animatable: yes r The radius of the circle. A value lower or equal to zero disables rendering of the circle. ...
...ibutes cx The x-axis coordinate of the center of the circle. Value type: <length>|<percentage> ; Default value: 0;
Animatable: yes cy The y-axis coordinate of the center of the circle. Value type: <length>|<percentage> ; Default value: 0;
Animatable: yes r The radius of the circle. A value lower or equal to zero disables rendering of the circle. Value type: <length> ; Default value: 0;
Animatable: yes pathLength The total length for the circle's circumference, in user units. Value type: <number> ; Default value: none;
Animatable: yes Note: Starting with SVG2, cx, cy, and r are Geometry Properties, meaning those attributes can also be used as CSS properties for that element. Global attributes Core Attributes Most notably: id, tabindex Styling Attributes class, style Conditio...
<feDropShadow> - SVG: Scalable Vector Graphics
</filter> </defs> <circle cx="5" cy="50%" r="4" style="fill:pink; filter:url(#shadow);"/> <circle cx="15" cy="50%" r="4" style="fill:pink; filter:url(#shadow2);"/> <circle cx="25" cy="50%" r="4" style="fill:pink; filter:url(#shadow3);"/> </svg> Attributes dx This attribute defines the x offset of the drop shadow. ...
...="15" cy="50%" r="4" style="fill:pink; filter:url(#shadow2);"/> <circle cx="25" cy="50%" r="4" style="fill:pink; filter:url(#shadow3);"/> </svg> Attributes dx This attribute defines the x offset of the drop shadow. Value type: <number>; Default value: 2;
Animatable: yes dy This attribute defines the y offset of the drop shadow. Value type: <number>; Default value: 2;
Animatable: yes stdDeviation This attribute defines the standard deviation for the blur operation in the drop shadow. ...
...> Attributes dx This attribute defines the x offset of the drop shadow. Value type: <number>; Default value: 2;
Animatable: yes dy This attribute defines the y offset of the drop shadow. Value type: <number>; Default value: 2;
Animatable: yes stdDeviation This attribute defines the standard deviation for the blur operation in the drop shadow. ...
<line> - SVG: Scalable Vector Graphics
ints. html,body,svg { height:100% } <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <line x1="0" y1="80" x2="100" y2="20" stroke="black" /> <!-- If you do not specify the stroke color the line will not be visible --> </svg> Attributes x1 Defines the x-axis coordinate of the line starting point. Value type: <length>|<percentage>|<number> ; Default value: 0;
Animatable: yes x2 Defines the x-axis coordinate of the line ending point. Value type: <length>|<percentage>|<number> ; Default value: 0;
Animatable: yes y1 Defines the y-axis coordinate of the line starting point. Value type: <length>|<percentage>|<number> ; Default value: 0;
Animatable: yes y2 Defines the y-axis coordinate of the line ending point. Value type: <length>|<percentage>|<number> ; Def...
...nes the x-axis coordinate of the line ending point. Value type: <length>|<percentage>|<number> ; Default value: 0;
Animatable: yes y1 Defines the y-axis coordinate of the line starting point. Value type: <length>|<percentage>|<number> ; Default value: 0;
Animatable: yes y2 Defines the y-axis coordinate of the line ending point. Value type: <length>|<percentage>|<number> ; Default value: 0;
Animatable: yes pathLength Defines the total path length in user units. ...
...matable: yes y1 Defines the y-axis coordinate of the line starting point. Value type: <length>|<percentage>|<number> ; Default value: 0;
Animatable: yes y2 Defines the y-axis coordinate of the line ending point. Value type: <length>|<percentage>|<number> ; Default value: 0;
Animatable: yes pathLength Defines the total path length in user units. ...
<mask> - SVG: Scalable Vector Graphics
,0,1,90,35 Q90,65,50,95 Q10,65,10,35 Z" fill="black" /> </mask> <polygon points="-10,110 110,110 110,-10" fill="orange" /> <!-- with this mask applied, we "punch" a heart shape hole into the circle --> <circle cx="50" cy="50" r="50" mask="url(#myMask)" /> </svg> Attributes height This attribute defines the height of the masking area. Value type: <length> ; Default value: 120%;
Animatable: yes maskContentUnits This attribute defines the coordinate system for the contents of the <mask>. Value type: userSpaceOnUse|objectBoundingBox ; Default value: userSpaceOnUse;
Animatable: yes maskUnits This attribute defines defines the coordinate system for attributes x, y, width and height on the <mask>. Value type: userSpaceOnUse|objectBoundingBox ; Default value: objectBoundingBox; Ani...
...lt value: userSpaceOnUse;
Animatable: yes maskUnits This attribute defines defines the coordinate system for attributes x, y, width and height on the <mask>. Value type: userSpaceOnUse|objectBoundingBox ; Default value: objectBoundingBox;
Animatable: yes x This attribute defines the x-axis coordinate of the top-left corner of the masking area. Value type: <coordinate> ; Default value: -10%;
Animatable: yes y This attribute defines the y-axis coordinate of the top-left corner of the masking area. Value type: <coordinate> ; Default value: -10%;
Animatable: yes width This attribute defines the width of the masking area. ...
...nes the x-axis coordinate of the top-left corner of the masking area. Value type: <coordinate> ; Default value: -10%;
Animatable: yes y This attribute defines the y-axis coordinate of the top-left corner of the masking area. Value type: <coordinate> ; Default value: -10%;
Animatable: yes width This attribute defines the width of the masking area. ...
<rect> - SVG: Scalable Vector Graphics
les may have their corners rounded. html,body,svg { height:100% } <svg viewBox="0 0 220 100" xmlns="http://www.w3.org/2000/svg"> <!-- Simple rectangle --> <rect width="100" height="100" /> <!-- Rounded corner rectangle --> <rect x="120" width="100" height="100" rx="15" /> </svg> Attributes x The x coordinate of the rect. Value type: <length>|<percentage> ; Default value: 0;
Animatable: yes y The y coordinate of the rect. Value type: <length>|<percentage> ; Default value: 0;
Animatable: yes width The width of the rect. Value type: auto|<length>|<percentage> ; Default value: auto;
Animatable: yes height The height of the rect. Value type: auto|<length>|<percentage> ; Default value: auto;
Animatable: yes rx The horizontal corner radius of the rect. Defaults to ry if it...
...efault value: 0;
Animatable: yes width The width of the rect. Value type: auto|<length>|<percentage> ; Default value: auto;
Animatable: yes height The height of the rect. Value type: auto|<length>|<percentage> ; Default value: auto;
Animatable: yes rx The horizontal corner radius of the rect. Defaults to ry if it is specified. Value type: auto|<length>|<percentage> ; Default value: auto;
Animatable: yes ry The vertical corner radius of the rect. Defaults to rx if it is specified. Value type: auto|<length>|<percentage> ; Default value: auto;
Animatable: yes pathLength The total length of the rectangle's perimeter, in user units. ...
... rect. Defaults to ry if it is specified. Value type: auto|<length>|<percentage> ; Default value: auto;
Animatable: yes ry The vertical corner radius of the rect. Defaults to rx if it is specified. Value type: auto|<length>|<percentage> ; Default value: auto;
Animatable: yes pathLength The total length of the rectangle's perimeter, in user units. Value type: <number> ; Default value: none;
Animatable: yes Note: Starting with SVG2, x, y, width, height, rx and ry are Geometry Properties, meaning those attributes can also be used as CSS properties for that element. Global attributes Core Attributes Most notably: id, tabindex Styling Attributes class, style Conditional Processing Attributes Most notably: requiredExtensions, systemLanguage Event Attributes Global event attributes, G...
<stop> - SVG: Scalable Vector Graphics
te(90)"> <stop offset="5%" stop-color="gold" /> <stop offset="95%" stop-color="red" /> </linearGradient> </defs> <!-- using my linear gradient --> <circle cx="5" cy="5" r="4" fill="url('#myGradient')" /> </svg> Attributes offset This attribute defines where the gradient stop is placed along the gradient vector. ...
... cy="5" r="4" fill="url('#myGradient')" /> </svg> Attributes offset This attribute defines where the gradient stop is placed along the gradient vector. Value type: <number>|<percentage>; Default value: 0;
Animatable: yes stop-color This attribute defines the color of the gradient stop. It can be used as a CSS property. Value type: currentcolor|<color>|<icccolor>; Default value: black;
Animatable: yes stop-opacity This attribute defines the opacity of the gradient stop. It can be used as a CSS property. ...
...ue type: <number>|<percentage>; Default value: 0;
Animatable: yes stop-color This attribute defines the color of the gradient stop. It can be used as a CSS property. Value type: currentcolor|<color>|<icccolor>; Default value: black;
Animatable: yes stop-opacity This attribute defines the opacity of the gradient stop. It can be used as a CSS property. ...
<style> - SVG: Scalable Vector Graphics
:100%; margin: 0; padding: 0; } <svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"> <style> circle { fill: gold; stroke: maroon; stroke-width: 2px; } </style> <circle cx="5" cy="5" r="4" /> </svg> Attributes type This attribute defines type of the style sheet language to use as a media type string. ...
... fill: gold; stroke: maroon; stroke-width: 2px; } </style> <circle cx="5" cy="5" r="4" /> </svg> Attributes type This attribute defines type of the style sheet language to use as a media type string. Value type: <string>; Default value: text/css;
Animatable: no media This attribute defines to which media the style applies. Value type: <string>; Default value: all;
Animatable: no title This attribute the title of the style sheet which can be used to switch between alternate style sheets. ...
...f the style sheet language to use as a media type string. Value type: <string>; Default value: text/css;
Animatable: no media This attribute defines to which media the style applies. Value type: <string>; Default value: all;
Animatable: no title This attribute the title of the style sheet which can be used to switch between alternate style sheets. ...
<use> - SVG: Scalable Vector Graphics
cross-origin policy for use elements. Since SVG 2, the xlink:href attribute is deprecated in favor of href. See xlink:href page for more information. However, xlink:href can still be required in practice for cross-browser compatibility (see the compatibility table below). Attributes href The URL to an element/fragment that needs to be duplicated. Value type: <URL> ; Default value: none;
Animatable: yes xlink:href An <IRI> reference to an element/fragment that needs to be duplicated. Value type: <IRI> ; Default value: none;
Animatable: yes x The x coordinate of the use element. Value type: <coordinate> ; Default value: 0;
Animatable: yes y The y coordinate of the use element. Value type: <coordinate> ; Default value: 0;
Animatable: yes width The width of the use element. Value ...
...they only have an effect when use refers to a svg or symbol element. ...
...they only have an effect when use refers to a svg or symbol element. Note: Starting with SVG2, x, y, width, and height are Geometry Properties, meaning those attributes can also be used as CSS properties for that element. ...
Element.getAnimations() - Web APIs
It can optionally return Animation objects for descendant elements too. Note: This array includes CSS Animations, CSS Transitions, and Web Animations. Syntax const animations = Element.getAnimations(options); Parameters options Optional An options object containing the following property: subtree A boolean value which, if true, causes animations that target descendants of Element to be returned as well. ...
...rue } is specified. Examples The following code snippet will wait for all animations on elem and its descendants to finish before removing the element from the document. Promise.all( elem.getAnimations({ subtree: true }) .map(animation => animation.finished) ).then(() => elem.remove()); Specifications Specification Status Comment Web AnimationsThe definition of '
Animatable.getAnimations()' in that specification. Working Draft Editor's draft. ...
Element - Web APIs
onsolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a></svg></div> a:hover text { fill: #0095DD; pointer-events: all;} Properties Inherits properties from its parent interface, Node, and by extension that interface's parent, EventTarget. It implements the properties of ParentNode, ChildNode, NonDocumentTypeChildNode, and
Animatable. Element.attributes Read only Returns a NamedNodeMap object containing the assigned attributes of the corresponding HTML element. Element.classList Read only Returns a DOMTokenList containing the list of class attributes. Element.className Is a DOMString representing the class of the element. Element.clientHeight Read only Returns a Number representing the inner height of the element...
...h for unexpected changes, such as when your app is running in the background. Element.onfullscreenerror An event handler for the fullscreenerror event, which is sent when an error occurs while attempting to change into full-screen mode. Methods Inherits methods from its parents Node, and its own parent, EventTarget, and implements those of ParentNode, ChildNode, NonDocumentTypeChildNode, and
Animatable. EventTarget.addEventListener() Registers an event handler to a specific event type on the element. Element.attachShadow() Attaches a shadow DOM tree to the specified element and returns a reference to its ShadowRoot. Element.animate() A shortcut method to create and run an animation on an element. Returns the created Animation object instance. Element.closest() Returns the Element ...
Index - Web APIs
d, it is always attached to an existing element. After the shadow DOM is created, the element that it is attached to is called the shadow root. 1110 Element.currentStyle API, NeedsExample, Non-standard, Property Element.currentStyle is a proprietary property which is similar to the standardized window.getComputedStyle() method. 1111 Element.getAnimations() API,
Animatable, CSS, CSS Animations, CSS Transitions, Element, Experimental, Method, Reference, Transitions, Web Animations, getAnimations, waapi, web animations api The getAnimations() method of the Element interface (specified on the
Animatable mixin) returns an array of all Animation objects affecting this element or which are scheduled to do so in future. It can optionally return Animation objects for...
...ence, keyboard, values The values read-only property of the KeyboardLayoutMap interface returns a new object that contains the values for each index in the . 2231 KeyframeEffect API, Animation, Animations, Experimental, Interface, KeyframeEffect, Reference, Web Animations, web animations api The KeyframeEffect interface of the Web Animations API lets us create sets of
animatable properties and values, called keyframes. These can then be played using the Animation() constructor. 2232 KeyframeEffect.KeyframeEffect() API, Animation, Constructor, Experimental, KeyframeEffect, Reference, waapi, web animations api The KeyframeEffect() constructor of the Web Animations API returns a new KeyframeEffect object instance, and also allows you to clone an existin...
KeyframeEffect.setKeyframes() - Web APIs
e. a single keyframe), and the browser will infer the other end of the animation if it is able to. For example, consider this simple animation -- the Keyframe object looks like so: let rotate360 = [ { transform: 'rotate(360deg)' } ]; We have only specified the end state of the animation, and the beginning state is implied. Attributes Keyframes may specify property-value pairs for any of the
animatable css properties. The property names are specified using camel-case so for example background-color becomes backgroundColor and background-position-x becomes backgroundPositionX. Shorthand values such as margin are also permitted. Two exceptional CSS properties are: float, which must be written as cssFloat since "float" is a reserved word in JavaScript. It's just for reference here, this will h...
...sing camel-case so for example background-color becomes backgroundColor and background-position-x becomes backgroundPositionX. Shorthand values such as margin are also permitted. Two exceptional CSS properties are: float, which must be written as cssFloat since "float" is a reserved word in JavaScript. It's just for reference here, this will have no effect on animation since "float" is not an
animatable CSS property. offset, which must be written as cssOffset since "offset" represents the keyframe offset as described below. The following special attributes may also be specified: offset The offset of the keyframe specified as a number between 0.0 and 1.0 inclusive or null. This is equivalent to specifying start and end states in percentages in CSS stylesheets using @keyframes. If this va...
Keyframe Formats - Web APIs
e. a single keyframe), and the browser will infer the other end of the animation if it is able to. For example, consider this simple animation -- the Keyframe object looks like so: let rotate360 = [ { transform: 'rotate(360deg)' } ]; We have only specified the end state of the animation, and the beginning state is implied. Attributes Keyframes may specify property-value pairs for any of the
animatable css properties. The property names are specified using camel-case so for example background-color becomes backgroundColor and background-position-x becomes backgroundPositionX. Shorthand values such as margin are also permitted. Two exceptional CSS properties are: float, which must be written as cssFloat since "float" is a reserved word in JavaScript. It's just for reference here, this will h...
...sing camel-case so for example background-color becomes backgroundColor and background-position-x becomes backgroundPositionX. Shorthand values such as margin are also permitted. Two exceptional CSS properties are: float, which must be written as cssFloat since "float" is a reserved word in JavaScript. It's just for reference here, this will have no effect on animation since "float" is not an
animatable CSS property. offset, which must be written as cssOffset since "offset" represents the keyframe offset as described below. The following special attributes may also be specified: offset The offset of the keyframe specified as a number between 0.0 and 1.0 inclusive or null. This is equivalent to specifying start and end states in percentages in CSS stylesheets using @keyframes. If this va...
SVG Styling Attributes - SVG: Scalable Vector Graphics
The SVG styling attributes are all the attributes that can be specified on any SVG element to apply CSS styling effects. ...
...fied on any SVG element to apply CSS styling effects. class style Attributes class Assigns a class name or set of class names to an element. ...
attributeType - SVG: Scalable Vector Graphics
XML This value specifies that the value of attributeName is the name of an XML attribute defined as
animatable in the default XML namespace for the target element. auto This value specifies that the implementation should match the attributeName to an attribute for the ...
...svg"> <rect x="50" y="50" width="100" height="100"> <animate attributeType="XML" attributeName="y" from="0" to="50" dur="5s" repeatCount="indefinite"/> </rect> </svg> Usage notes Value CSS | XML | auto Default value auto
Animatable No CSS This value specifies that the value of attributeName is the name of a CSS property defined as
animatable. XML This value specifies that the value of attributeName is the name of an XML attribute defined as
animatable in the default XML namespace for the target element. auto This value specifies that the implementation should match the attributeName to an attribute for the target element. User agents first search through the list of CSS properties for a matching property name, and if none is foun...
begin - SVG: Scalable Vector Graphics
ements are using this attribute: <animate>, <animateColor>, <animateMotion>, <animateTransform>, <discard>, and <set> animate, animateColor, animateMotion, animateTransform, set For <animate>, <animateColor>, <animateMotion>, <animateTransform>, and <set>, begin defines when the element should begin, i.e. become active. Value <begin-value-list> Default value 0s
Animatable No The <begin-value-list> is a semicolon-separated list of values. Each value can be one of the following: <offset-value> This value defines a clock-value that represents a point in time relative to the beginning of the SVG document (usually the load or DOMContentLoaded event). Negative values are valid. <syncbase-value> This value defines a syncbase and an optional offset from th...
...ckwards in the timeline doesn't re-insert the discarded elements. So, authors are encouraged to set the playbackorder attribute to forwardonly when using the <discard> element. The <discard> element itself can be discarded prior to its activation, in which case it will never trigger the removal of its own target element. Value <begin-value-list> Default value 0s
Animatable No The definition of <begin-value-list> is the same as for the other animation elements. Examples Offset example <svg width="120" height="120" viewBox="0 0 120 120" xmlns="http://www.w3.org/2000/svg" version="1.1"> <!-- animated rectangles --> <rect x="10" y="35" height="15" width="0"> <animate attributeType="XML" attributeName="width" to="100" ...
d - SVG: Scalable Vector Graphics
} <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <path fill="none" stroke="red" d="M 10,30 A 20,20 0,0,1 50,30 A 20,20 0,0,1 90,30 Q 90,60 50,90 Q 10,60 10,30 z" /> </svg> path For <path>, d is a string containing a series of path commands that define the path to be drawn. Value <string> Default value none
Animatable Yes glyph Warning: As of SVG2 <glyph> is deprecated and shouldn't be used. For <glyph>, d is a string containing a series of path commands that define the outline shape of the glyph. Value <string> Default value none
Animatable Yes Note: The point of origin (the coordinate 0,0) is usually the upper left corner of the context. However the <gl...
... the upper left corner of the context. However the <glyph> element has its origin in the bottom left corner of its letterbox. missing-glyph Warning: As of SVG2 <missing-glyph> is deprecated and shouldn't be used. For <missing-glyph>, d is a string containing a series of path commands that define the outline shape of the glyph. Value <string> Default value none
Animatable Yes Path commands Path commands are instructions that define a path to be drawn. Each command is composed of a command letter and numbers that represent the command parameters. SVG defines 6 types of path commands, for a total of 20 commands: MoveTo: M, m LineTo: L, l, H, h, V, v Cubic Bezier Curve: C, c, S, s Quadratic Bezier Curve: Q, q, T, t Elliptical Arc Curve: A, a Close...
edgeMode - SVG: Scalable Vector Graphics
ements are using this attribute: <feConvolveMatrix> and <feGaussianBlur> feConvolveMatrix For <feConvolveMatrix>, edgeMode determines how to extend the input image as necessary with color values so that the matrix operations can be applied when the kernel is positioned at or near the edge of the input image. Value duplicate | wrap | none Default value duplicate
Animatable Yes duplicate This value indicates that the input image is extended along each of its borders as necessary by duplicating the color values at the given edge of the input image. wrap This value indicates that the input image is extended by taking the color values from the opposite edge of the image. none This value indicates that the input image is extended with pixel values of ze...
...es that the input image is extended with pixel values of zero for R, G, B and A. feGaussianBlur For <feGaussianBlur>, edgeMode determines how to extend the input image as necessary with color values so that the matrix operations can be applied when the kernel is positioned at or near the edge of the input image. Value duplicate | wrap | none Default value none
Animatable Yes duplicate This value indicates that the input image is extended along each of its borders as necessary by duplicating the color values at the given edge of the input image. wrap This value indicates that the input image is extended by taking the color values from the opposite edge of the image. none This value indicates that the input image is extended with pixel values of ze...
gradientUnits - SVG: Scalable Vector Graphics
e defines the coordinate system used for attributes specified on the gradient elements. Two elements are using this attribute: <linearGradient> and <radialGradient> linearGradient For <linearGradient>, gradientUnits defines the coordinate system used for the attributes x1, y1, x2, and y2. ...
... normal will remain perpendicular. This transformation is due to application of the non-uniform scaling transformation from bounding box space to user space. radialGradient For <radialGradient>, gradientUnits defines the coordinate system used for the attributes cx, cy, r, fx, fy, and fr. ...
name - SVG: Scalable Vector Graphics
The name attribute specifies either the name of a color profile or a font face. Two elements are using this attribute: <color-profile> and <font-face-name> color-profile For <color-profile>, name defines the name of the color profile. Value <name> Default value None
Animatable Yes <name> This value is the name which is used as the first parameter for ICC color specifications within fill, stroke, stop-color, flood-color and lighting-color property values to identify the color profile to use for the ICC color specification and the name which can be the value of the color-profile property. Note: If no name is provided, it will be impossible to reference the given color profile description. The name "sRGB" is predefined; any color profile descri...
...profile property. Note: If no name is provided, it will be impossible to reference the given color profile description. The name "sRGB" is predefined; any color profile descriptions with <name> set to "sRGB" (case-insensitively) will be ignored. font-face-name For <font-face-name>, name defines the name of the font face. Value <name> Default value None
Animatable Yes <name> This value specifies the name of a local font. Unlike the syntax allowed between the parentheses of the local(...) clause in an @font-face rule src descriptor, the font name specified in this attribute is not surrounded in single or double quotes. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)T...
operator - SVG: Scalable Vector Graphics
.8"/> </filter> <text x="0" y="15">Normal text</text> <text x="0" y="40" filter="url(#erode)">Thin text</text> <text x="0" y="65" filter="url(#dilate)">Fat text</text> </svg> feComposite For <feComposite>, operator defines the compositing operation that is to be performed. Value over | in | out | atop | xor | lighter | arithmetic Default value over
Animatable Yes over This value indicates that the source graphic defined in the in attribute is placed over the destination graphic defined in the in2 attribute. in This value indicates that the parts of the source graphic defined in the in attribute that overlap the destination graphic defined in the in2 attribute, replace the destination graphic. out This value indicates that the parts of...
...ere: i1 and i2 indicate the corresponding pixel channel values of the input image, which map to in and in2 respectively, and k1,k2,k3,and k4 indicate the values of the attributes with the same name. feMorphology For <feMorphology>, operator defines whether to erode (i.e., thin) or dilate (fatten) the source graphic. Value erode | dilate Default value erode
Animatable Yes erode This value thins the source graphic defined in the in attribute. dilate This value fattens the source graphic defined in the in attribute. Specifications Specification Status Comment Filter Effects Module Level 1The definition of 'operator for <feMorphology>' in that specification. Working Draft No change Filter Effects Module...
path - SVG: Scalable Vector Graphics
eMotion For <animateMotion>, path defines the motion path, expressed in the same format and interpreted the same way as the d geometric property for the <path> element. The effect of a motion path animation is a translation along the x- and y-axes of the current user coordinate system by the x and y values computed over time. Value <path-data> Default value None
Animatable No <path-data> This value defines the motion path along which the referenced element is animated. For detailed information about the commands that can be used, see the explanation for the d attribute. textPath For <textPath>, path defines the path onto which the glyphs of a <text> element will be rendered. An empty string indicates that there is no path data for the element. This ...
... <text> element will be rendered. An empty string indicates that there is no path data for the element. This means that the text within the <textPath> element does not render or contribute to the bounding box of the <text> element. If the attribute is not specified, the path specified in href is used instead. Value <path-data> Default value Path specified in href
Animatable Yes <path-data> This value defines the text path along which the glyphs of the <text> element are aligned. For detailed information about the commands that can be used, see the explanation for the d attribute. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 2The definition of 'path for <textPath>' in that specification. Can...
points - SVG: Scalable Vector Graphics
eadable for human beings. --> </svg> polyline For <polyline>, points defines a list of points, each representing a vertex of the line to be drawn. Each point is define by a X and Y coordinate in the user coordinate system. Note: A polyline is an open shape, meaning the last point is not connected to the first point. Value [ <number>+ ]# Default value none
Animatable Yes Example html,body,svg { height:100% } <svg viewBox="-10 -10 120 120" xmlns="http://www.w3.org/2000/svg"> <!-- polyline is an open shape --> <polyline stroke="black" fill="none" points="50,0 21,90 98,35 2,35 79,90"/> </svg> polygon For <polygon>, points defines a list of points, each representing a vertex of the shape to be drawn. Each point is define by a X and Y coor...
...oints="50,0 21,90 98,35 2,35 79,90"/> </svg> polygon For <polygon>, points defines a list of points, each representing a vertex of the shape to be drawn. Each point is define by a X and Y coordinate in the user coordinate system. Note: A polygon is a closed shape, meaning the last point is connected to the first point. ...
r - SVG: Scalable Vector Graphics
" /> <rect x="120" y="120" width="60" height="60" fill="url(#myGradient050)" /> <rect x="220" y="120" width="60" height="60" fill="url(#myGradient100)" /> </svg> circle For <circle>, r defines the radius of the circle and therefor its size. With a value lower or equal to zero the circle won't be drawn at all. Value <length> | <percentage> Default value 0
Animatable Yes Note: Starting with SVG2, r is a Geometry Property meaning this attribute can also be used as a CSS property for circles. radialGradient For <radialGradient>, r defines the radius of the end circle for the radial gradient. The gradient will be drawn such that the 100% gradient stop is mapped to the perimeter of this end circle. A value of lower or equal to zero will cause the are...
...>, r defines the radius of the end circle for the radial gradient. The gradient will be drawn such that the 100% gradient stop is mapped to the perimeter of this end circle. A value of lower or equal to zero will cause the area to be painted as a single color using the color and opacity of the last gradient <stop>. Value <length> | <percentage> Default value 50%
Animatable Yes Specifications Specification Status Comment Scalable Vector Graphics (SVG) 2The definition of 'r' in that specification. Candidate Recommendation Definition as a geometry property Scalable Vector Graphics (SVG) 2The definition of 'r' in that specification. Candidate Recommendation Definition for SVG2 paint servers <radialGradient> ...
refX - SVG: Scalable Vector Graphics
efX attribute defines the x coordinate of an element's reference point. Two elements are using this attribute: <marker> and <symbol> marker For <marker>, refX defines the x coordinate of the marker's reference point, which is to be placed exactly at the marker's position on the shape. Value <length-percentage> | <number> | left | center | right Default value 0
Animatable Yes <length-percentage> Lengths are interpreted as being in the coordinate system of the marker contents, after application of the viewBox and preserveAspectRatio attributes. Percentage values are interpreted as being a percentage of the viewBox width. <number> Numbers are interpreted as being in the coordinate system of the marker contents, after application of the viewBox and ...
...coordinate) is positioned at the x coordinate. For backwards compatibility, the behavior when refX is not specified on a <symbol> element is different from when it is specified with a value of 0, and therefore different from the behavior when an equivalent attribute is not specified on a <marker> element. Value <length> | left | center | right Default value None
Animatable Yes <length-percentage> Lengths are interpreted as being in the coordinate system of the marker contents, after application of the viewBox and preserveAspectRatio attributes. Percentage values are interpreted as being a percentage of the viewBox width. <number> Numbers are interpreted as being in the coordinate system of the marker contents, after application of the viewBox and ...
refY - SVG: Scalable Vector Graphics
efY attribute defines the y coordinate of an element's reference point. Two elements are using this attribute: <marker> and <symbol> marker For <marker>, refY defines the y coordinate of the marker's reference point, which is to be placed exactly at the marker's position on the shape. Value <length-percentage> | <number> | top | center | bottom Default value 0
Animatable Yes <length-percentage> Lengths are interpreted as being in the coordinate system of the marker contents, after application of the viewBox and preserveAspectRatio attributes. Percentage values are interpreted as being a percentage of the viewBox height. <number> Numbers are interpreted as being in the coordinate system of the marker contents, after application of the viewBox and...
...coordinate) is positioned at the y coordinate. For backwards compatibility, the behavior when refY is not specified on a <symbol> element is different from when it is specified with a value of 0, and therefore different from the behavior when an equivalent attribute is not specified on a <marker> element. Value <length> | top | center | bottom Default value None
Animatable Yes <length-percentage> Lengths are interpreted as being in the coordinate system of the marker contents, after application of the viewBox and preserveAspectRatio attributes. Percentage values are interpreted as being a percentage of the viewBox height. <number> Numbers are interpreted as being in the coordinate system of the marker contents, after application of the viewBox and...
rx - SVG: Scalable Vector Graphics
0" height="60" rx="0" ry="15"/> <rect x="120" y="120" width="60" height="60" rx="15" ry="15"/> <rect x="220" y="120" width="60" height="60" rx="150" ry="15"/> </svg> ellipse For <ellipse>, rx defines the x-radius of the shape. With a value lower or equal to zero the ellipse won't be drawn at all. Value <length> | <percentage> | auto Default value auto
Animatable Yes Note: Starting with SVG2, rx is a Geometry Property meaning this attribute can also be used as a CSS property for ellipses. rect For <rect>, rx defines the x-axis radius of the ellipse used to round off the corners of the rectangle. The way the value of the rx attribute is interpreted depend on both the ry attribute and the width of the rectangle: If a properly specified value...
...ider the missing value equal to the defined one. If neither rx nor ry has a properly specified value, then the browser will draw a rectangle with square corners. If rx is greater than half of the width of the rectangle, then the browser will consider the value for rx as half of the width of the rectangle. Value <length> | <percentage> | auto Default value auto
Animatable Yes Note: Starting with SVG2, rx is a Geometry Property meaning this attribute can also be used as a CSS property for rects. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 2The definition of 'rx' in that specification. Candidate Recommendation Definition as a geometry property Scalable Vector Graphics (SVG) 1.1 (Se...
ry - SVG: Scalable Vector Graphics
0" height="60" ry="0" rx="15"/> <rect x="120" y="120" width="60" height="60" ry="15" rx="15"/> <rect x="220" y="120" width="60" height="60" ry="150" rx="15"/> </svg> ellipse For <ellipse>, ry defines the y-radius of the shape. With a value lower or equal to zero the ellipse won't be drawn at all. Value <length> | <percentage> | auto Default value auto
Animatable Yes Note: Starting with SVG2, ry is a Geometry Property meaning this attribute can also be used as a CSS property for ellipses. rect For <rect>, ry defines the y-axis radius of the ellipse used to round off the corners of the rectangle. The way the value of the ry attribute is interpreted depend on both the rx attribute and the width of the rectangle: If a properly specified value...
...ider the missing value equal to the defined one. If neither ry nor rx has a properly specified value, then the browser will draw a rectangle with square corners. If ry is greater than half of the width of the rectangle, then the browser will consider the value for ry as half of the width of the rectangle. Value <length> | <percentage> | auto Default value auto
Animatable Yes Note: Starting with SVG2, ry is a Geometry Property meaning this attribute can also be used as a CSS property for rects. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 2The definition of 'ry' in that specification. Candidate Recommendation Definition as a geometry property Scalable Vector Graphics (SVG) 1.1 (Se...
specularExponent - SVG: Scalable Vector Graphics
<rect x="0" y="0" width="200" height="200" style="filter: url(#diffuseLighting1);" /> <rect x="0" y="0" width="200" height="200" style="filter: url(#diffuseLighting2); transform: translateX(220px);" /> </svg> feSpecularLighting For <feSpecularLighting>, specularExponent defines the exponent value for the specular term. ...
... </svg> feSpecularLighting For <feSpecularLighting>, specularExponent defines the exponent value for the specular term. Value <number> Default value 1
Animatable Yes feSpotLight For <feSpotLight>, specularExponent defines the exponent value controlling the focus for the light source. Value <number> Default value 1
Animatable Yes Specifications Specification Status Comment Filter Effects Module Level 1The definition of 'specularExponent for <feSpecularLighting>' in that specification. Working Draft No change Filter Effects Module Level 1The definition of 'specularExponent for <feSpotLight>' in that specification. Working Draft No change Scalable Vect...
to - SVG: Scalable Vector Graphics
" width="100" height="100"> <animate attributeType="XML" attributeName="width" fill="freeze" from="100" to="150" dur="3s"/> </rect> </svg> animate, animateColor, animateMotion, animateTransform For <animate>, <animateColor>, <animateMotion>, and <animateTransform>, to specifies the ending value of the animation. ...
... Specifications Specification Status Comment SVG Animations Level 2The definition of 'to for <set>' in that specification. ...
values - SVG: Scalable Vector Graphics
animate, animateColor, animateMotion, animateTransform For <animate>, <animateColor>, <animateMotion>, and <animateTransform>, values is a list of values defining the sequence of values over the course of the animation. If this attribute is specified, any from, to, and by attribute values set on the element are ignored. Value <list-of-values> Default value None
Animatable No <list-of-values> The value holds a semicolon-separated list of one or more values. The type of the values is defined by the href and attributeName attributes. feColorMatrix For the <feColorMatrix> element, values is a list of numbers interpreted differently depending on the value of the type attribute. Value <list-of-numbers> Default value If type="matr...
... and attributeName attributes. feColorMatrix For the <feColorMatrix> element, values is a list of numbers interpreted differently depending on the value of the type attribute. Value <list-of-numbers> Default value If type="matrix", identity matrix, if type="saturate", 1, resulting in identity matrix, if type="hueRotate", 0, resulting in identity matrix
Animatable Yes <list-of-numbers> The value is a list of numbers, which is interpreted differently depending on the value of the type attribute: For type="matrix", values is a list of 20 matrix values (a00 a01 a02 a03 a04 a10 a11 ... a34), separated by whitespace and/or a comma. For type="saturate", values is a single real number value (0 to 1). For type="hueRotate", values is a singl...
vert-adv-y - SVG: Scalable Vector Graphics
The vert-adv-y attribute indicates the vertical advance after rendering a glyph in vertical orientation. Three elements are using this attribute: <font>, <glyph>, and <missing-glyph> font For <font> elements, vert-adv-y specifies the default vertical advance for a glyph in vertical orientation. ...
...lt value 1 em as of units-per-em
Animatable No <number> This value indicates the default vertical advance of the glyph in vertical direction glyph, missing-glyph For <glyph> and <missing-glyph> elements, vert-adv-y specifies the vertical advance for a glyph in vertical orientation. Value <number> Default value <font>'s vert-adv-y value
Animatable No <number> This value indicates the vertical advance of the glyph in vertical direction Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'vert-adv-y for <glyph> and <missing-glyph>' in that specification. Recommendation Initial definition for <glyph> and <missing-glyph> Scal...
x1 - SVG: Scalable Vector Graphics
00% } <svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"> <line x1="1" x2="5" y1="1" y2="9" stroke="red" /> <line x1="5" x2="5" y1="1" y2="9" stroke="green" /> <line x1="9" x2="5" y1="1" y2="9" stroke="blue" /> </svg> line For <line>, x1 defines the x coordinate of the starting point of the line. ...
...="9" stroke="green" /> <line x1="9" x2="5" y1="1" y2="9" stroke="blue" /> </svg> linearGradient For <linearGradient>, x1 defines the x coordinate of the starting point of the gradient vector used to map the gradient stop values. ...
x2 - SVG: Scalable Vector Graphics
:100% } <svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"> <line x1="5" x2="1" y1="1" y2="9" stroke="red" /> <line x1="5" x2="5" y1="1" y2="9" stroke="green" /> <line x1="5" x2="9" y1="1" y2="9" stroke="blue" /> </svg> line For <line>, x2 defines the x coordinate of the ending point of the line. ...
...="9" stroke="green" /> <line x1="5" x2="9" y1="1" y2="9" stroke="blue" /> </svg> linearGradient For <linearGradient>, x2 defines the x coordinate of the ending point of the gradient vector used to map the gradient stop values. ...
y1 - SVG: Scalable Vector Graphics
00% } <svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"> <line x1="1" x2="9" y1="1" y2="5" stroke="red" /> <line x1="1" x2="9" y1="5" y2="5" stroke="green" /> <line x1="1" x2="9" y1="9" y2="5" stroke="blue" /> </svg> line For <line>, y1 defines the y coordinate of the starting point of the line. ...
...2="5" stroke="green" /> <line x1="1" x2="9" y1="9" y2="5" stroke="blue" /> </svg> linearGradient For <linearGradient>, y1 defines the y coordinate of the starting point of the gradient vector used to map the gradient stop values. The exact behavior of this attribute is influenced by the gradientUnits attributs Value <length> | <percentage> Default value 0%
Animatable Yes Example html,body,svg { height:100% } <svg viewBox="0 0 20 10" xmlns="http://www.w3.org/2000/svg"> <!-- By default the gradient vector start at the top left corner of the bounding box of the shape it is applied to. --> <linearGradient y1="0%" id="g0"> <stop offset="5%" stop-color="black" /> <stop offset="50%" stop-color="red" /> <stop offset="95%" stop-c...
y2 - SVG: Scalable Vector Graphics
0% } <svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"> <line x1="1" x2="9" y1="5" y2="1" stroke="red" /> <line x1="1" x2="9" y1="5" y2="5" stroke="green" /> <line x1="1" x2="9" y1="5" y2="9" stroke="blue" /> </svg> line For <line>, y2 defines the y coordinate of the ending point of the line. ...
... y2="5" stroke="green" /> <line x1="1" x2="9" y1="5" y2="9" stroke="blue" /> </svg> linearGradient For <linearGradient>, y2 defines the y coordinate of the ending point of the gradient vector used to map the gradient stop values. The exact behavior of this attribute is influenced by the gradientUnits attributs Value <length> | <percentage> Default value 0%
Animatable Yes Example html,body,svg { height:100% } <svg viewBox="0 0 20 10" xmlns="http://www.w3.org/2000/svg"> <!-- By default the gradient vector end at the top right corner of the bounding box of the shape it is applied to. --> <linearGradient y2="0%" id="g0"> <stop offset="5%" stop-color="black" /> <stop offset="50%" stop-color="red" /> <stop offset="95%" stop-co...
z - SVG: Scalable Vector Graphics
eLighting1);" /> <rect x="0" y="0" width="200" height="200" style="filter: url(#diffuseLighting2); transform: translateX(220px);" /> </svg> fePointLight For <fePointLight>, z defines the location along the z-axis for the light source in the coordinate system established by the primitiveUnits attribute on the <filter> element. ...
... by the primitiveUnits attribute on the <filter> element. Value <number> Default value 1
Animatable Yes feSpotLight For <feSpotLight>, z defines the location along the z-axis for the light source in the coordinate system established by the primitiveUnits attribute on the <filter> element. Value <number> Default value 1
Animatable Yes Specifications Specification Status Comment Filter Effects Module Level 1The definition of 'z for <fePointLight>' in that specification. Working Draft No change Filter Effects Module Level 1The definition of 'z for <feSpotLight>' in that specification. Working Draft No change Scalable Vector Graphics (SVG) 1.1 (Second Editio...
<foreignObject> - SVG: Scalable Vector Graphics
xmlns="http://www.w3.org/1999/xhtml"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mollis mollis mi ut ultricies. Nullam magna ipsum, porta vel dui convallis, rutrum imperdiet eros. Aliquam erat volutpat. </div> </foreignObject> </svg> Attributes height The height of the foreignObject. ...
...llis mollis mi ut ultricies. Nullam magna ipsum, porta vel dui convallis, rutrum imperdiet eros. Aliquam erat volutpat. </div> </foreignObject> </svg> Attributes height The height of the foreignObject. Value type: <length>|<percentage> ; Default value: auto;
Animatable: yes width The width of the foreignObject. Value type: <length>|<percentage> ; Default value: auto;
Animatable: yes x The x coordinate of the foreignObject. Value type: <length>|<percentage> ; Default value: 0;
Animatable: yes y The y coordinate of the foreignObject. Value type: <length>|<percentage> ; Default value: 0;
Animatable: yes Note: Starting with SVG2, x, y, width, and height are Geometry Properties, meaning those attributes can also be used as CSS properties for that element. Global a...
<path> - SVG: Scalable Vector Graphics
basic shapes can be created with a path element. html,body,svg { height:100% } <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <path d="M 10,30 A 20,20 0,0,1 50,30 A 20,20 0,0,1 90,30 Q 90,60 50,90 Q 10,60 10,30 z"/> </svg> Attributes d This attribute defines the shape of the path. ...
...="M 10,30 A 20,20 0,0,1 50,30 A 20,20 0,0,1 90,30 Q 90,60 50,90 Q 10,60 10,30 z"/> </svg> Attributes d This attribute defines the shape of the path. Value type: <string> ; Default value: '';
Animatable: yes pathLength This attribute lets authors specify the total length for the path, in user units. ...
<polygon> - SVG: Scalable Vector Graphics
ill --> <polygon points="0,100 50,25 50,75 100,0" /> <!-- Example of the same polygon shape with stroke and no fill --> <polygon points="100,100 150,25 150,75 200,0" fill="none" stroke="black" /> </svg> Attributes points This attribute defines the list of points (pairs of x,y absolute coordinates) required to draw the polygon. ...
...100 150,25 150,75 200,0" fill="none" stroke="black" /> </svg> Attributes points This attribute defines the list of points (pairs of x,y absolute coordinates) required to draw the polygon. Value type: <number>+ ; Default value: "";
Animatable: yes pathLength This attribute lets specify the total length for the path, in user units. ...
KeyframeEffect - Web APIs
These can then be played using the Animation() constructor. Constructor KeyframeEffect() Returns a new KeyframeEffect object instance, and also allows you to clone an existing keyframe effect object instance. Properties KeyframeEffect.target Gets and sets the element, or originating element of the pseudo-element, being animated by this object. This may be null for animations that do not target a specific element or pseudo-element. KeyframeEffect.pseudoElement Gets and sets the selector of the pseudo-element being animated by this object. ...
SVGAngle - Web APIs
t in an exception being thrown. An SVGAngle object can be associated with a particular element. The associated element is used to determine which element's content attribute to update if the object reflects an attribute. Unless otherwise described, an SVGAngle object is not associated with any element. Every SVGAngle object operates in one of two modes: Reflect the base value of a reflected
animatable attribute (being exposed through the baseVal member of an SVGAnimatedAngle), Be detached, which is the case for SVGAngle objects created with SVGSVGElement.createSVGAngle(). Constants SVG_ANGLETYPE_UNKNOWN Some unknown type of value. SVG_ANGLETYPE_UNSPECIFIED A unitless <number> interpreted as a value in degrees. SVG_ANGLETYPE_DEG An <angle> with a deg unit. SVG_ANGLETYPE_RAD An <ang...
The 'X' property - Web APIs
te of the position of the element. Usage context Name x Value <length> | <percentage> Initial 0 Applies to <mask> , 'svg', 'rect', 'image', 'foreignObject' Inherited no Percentages refer to the size of the current viewport (see Units) Media visual Computed value absolute length or percentage
Animatable yes Simple usage A <coordinate> is a length in the user coordinate system that is the given distance from the origin of the user coordinate system along the relevant axis (the x-axis for X coordinates, the y-axis for Y coordinates). Its syntax is the same as that for <length> // Rect draws a rectangle with upper left-hand corner at x,y, with width w, and height h, with optional style ...
Web Animations API - Web APIs
guage for browsers and developers to describe animations on DOM elements. To get more information on the concepts behind the API and how to use it, read Using the Web Animations API. Web Animations interfaces Animation Provides playback controls and a timeline for an animation node or source. Can take an object created with the KeyframeEffect() constructor. KeyframeEffect Describes sets of
animatable properties and values, called keyframes and their timing options. These can then be played using the Animation() constructor. AnimationTimeline Represents the timeline of animation. This interface exists to define timeline features (inherited by DocumentTimeline and future timeline objects) and is not itself accessed by developers. AnimationEvent Actually part of CSS Animations. DocumentTime...
Using CSS transitions - CSS: Cascading Style Sheets
ition will last (by setting a duration), and how the transition will run (by defining a timing function, e.g. linearly or quick at the beginning, slow at the end). Which CSS properties can be transitioned? The Web author can define which property has to be animated and in which way. This allows the creation of complex transitions. As it doesn't make sense to animate some properties, the list of
animatable properties is limited to a finite set. Note: The set of properties that can be animated is changing as the specification develops. The auto value is often a very complex case. The specification recommends not animating from and to auto. Some user agents, like those based on Gecko, implement this requirement and others, like those based on WebKit, are less strict. Using animations with auto may ...
animation - CSS: Cascading Style Sheets
Constituent properties This property is a shorthand for the following CSS properties: animation-delay animation-direction animation-duration animation-fill-mode animation-iteration-count animation-name animation-play-state animation-timing-function Syntax The animation property is specified as ...
caret-color - CSS: Cascading Style Sheets
, 4%, 24%, 0.8); Values auto The user agent selects an appropriate color for the caret. This is generally currentcolor, but the user agent may choose a different color to ensure good visibility and contrast with the surrounding content, taking into account the value of currentcolor, the background, shadows, and other factors. Note: While user agents may use currentcolor (which is usually
animatable) for the auto value, auto is not interpolated in transitions and animations. <color> The color of the caret. Formal definition Initial valueautoApplies toall elementsInheritedyesComputed valueauto is computed as specified and <color> values are computed as defined for the color property.Animation typea color Formal syntax auto | <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hs...
SVG Event Attributes - SVG: Scalable Vector Graphics
n type is dispatched to the element on which the attributes are specified. For every event type that the browser supports, SVG supports that as an event attribute, following the same requirements as for HTML event attributes. The global event attributes are available on all SVG elements. Other event attributes are available on a case by case basis for each elements. All event attribute are not
animatable. Attributes Animation Event Attributes onbegin, onend, onrepeat Document Event Attributes onabort, onerror, onresize, onscroll, onunload Document Element Event Attributes oncopy, oncut, onpaste Global Event Attributes oncancel, oncanplay, oncanplaythrough, onchange, onclick, onclose, oncuechange, ondblclick, ondrag, ondragend, ondragenter, ondragexit, ondragleave, ondragover, ondragstart...
accent-height - SVG: Scalable Vector Graphics
gin to the top of accent characters, measured by a distance within the font coordinate system. Only one element is using this attribute: <font-face> font-face For <font-face>, accent-height defines the distance from the origin to the top of accent characters, measured by a distance within the font coordinate system. Value <number> Default value Value of ascent
Animatable No Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'accent-height' in that specification. Recommendation Initial definition ...
accumulate - SVG: Scalable Vector Graphics
peated animations to build upon the previous results, accumulating with each iteration. This attribute said to the animation if the value is added to the previous animated attribute's value on each iteration. Four elements are using this attribute: <animate>, <animateColor>, <animateMotion>, and <animateTransform> Usage notes Value none | sum Default value none
Animatable No sum Specifies that each repeat iteration after the first builds upon the last value of the previous iteration. none Specifies that repeat iterations are not cumulative. This attribute is ignored if the target attribute value does not support addition, or if the animation element does not repeat. This attribute will be ignored if the animation function is specified with only t...
additive - SVG: Scalable Vector Graphics
The additive attribute controls whether or not an animation is additive. It is frequently useful to define animation as an offset or delta to an attribute's value, rather than as absolute values. Four elements are using this attribute: <animate>, <animateColor>, <animateMotion>, and <animateTransform> Usage notes Value replace | sum Default value replace
Animatable No sum Specifies that the animation will add to the underlying value of the attribute and other lower priority animations. replace Specifies that the animation will override the underlying value of the attribute and other lower priority animations. This is the default, however the behavior is also affected by the animation value attributes by and to, as described in SMIL Animation: How ...
alignment-baseline - SVG: Scalable Vector Graphics
baseline Uses the dominant baseline choice of the parent. Matches the box's corresponding baseline to that of its parent. before-edge The alignment-point of the object being aligned is aligned with the "before-edge" baseline of the parent t...
alphabetic - SVG: Scalable Vector Graphics
the same syntax and semantics as the baseline descriptor within an @font-face. For horizontally oriented glyph layouts, it indicates the alignment coordinate for glyphs to achieve alphabetic baseline alignment. The value is an offset in the font coordinate system. Only one element is using this attribute: <font-face> Usage notes Value <number> Default value 0
Animatable No Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'alphabetic' in that specification. Recommendation Initial definition ...
amplitude - SVG: Scalable Vector Graphics
The amplitude attribute controls the amplitude of the gamma function of a component transfer element when its type attribute is gamma. Four elements are using this attribute: <feFuncA>, <feFuncB>, <feFuncG>, and <feFuncR> Usage notes Value <number> Default value 1
Animatable Yes Specifications Specification Status Comment Filter Effects Module Level 1The definition of 'amplitude' in that specification. Working Draft No change Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'amplitude' in that specification. Recommendation Initial definition ...
ascent - SVG: Scalable Vector Graphics
e set to the difference between the units-per-em value and the vert-origin-y value for the corresponding font. Only one element is using this attribute: <font-face> font-face For <font-face>, ascent defines the maximum unaccented height of the font within the font coordinate system. Value <number> Default value Difference between units-per-em and vert-origin-y
Animatable No Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'ascent' in that specification. Recommendation Initial definition ...
attributeName - SVG: Scalable Vector Graphics
Specifications Specification Status Comment SVG Animations Level 2The definition of 'attributeName' in that specification. Editor's Draft No change Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'attributeNa...
azimuth - SVG: Scalable Vector Graphics
Working Draft No change Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'azimuth' in that specification. Recommendation Initial definition ...
baseFrequency - SVG: Scalable Vector Graphics
If one number is provided, then that value is used for both x and y. Negative values are forbidden. Example <svg width="200" height="200" viewBox="0 0 220 220" xmlns="http://www.w3.o...
baseProfile - SVG: Scalable Vector Graphics
ata. For example, the value of the attribute could be used by an authoring tool to warn the user when they are modifying the document beyond the scope of the specified base profile. Each SVG profile should define the text that is appropriate for this attribute. Only one element is using this attribute: <svg> Context notes Value Profile name Default value none
Animatable No Example <svg width="120" height="120" version="1.1" xmlns="http://www.w3.org/2000/svg" baseProfile="full"> ... </svg> Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'baseProfile' in that specification. Recommendation Initial definition ...
baseline-shift - SVG: Scalable Vector Graphics
t can be used as a CSS property. Note: This property is going to be deprecated and authors are advised to use vertical-align instead. As a presentation attribute, it can be applied to any element but it has effect only on the following four elements: <altGlyph>, <textPath>, <tref>, and <tspan> Usage notes Value <length-percentage> | sub | super Default value 0
Animatable Yes sub The dominant-baseline is shifted to the default position for subscripts. super The dominant-baseline is shifted to the default position for superscripts. <length-percentage> A length value raises (positive value) or lowers (negative value) the dominant-baseline of the parent text content element by the specified length. A percentage value raises (positive value) or lower...
bbox - SVG: Scalable Vector Graphics
The bbox attribute defines the maximal bounding box of a font. Only one element is using this attribute: <font-face> Usage notes Value <string> Default value None
Animatable No <string> A comma-separated list of exactly four numbers specifying, in order, the lower left x, lower left y, upper right x, and upper right y of the bounding box for the complete font. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'bbox' in that specification. Recommendation Initial definition ...
bias - SVG: Scalable Vector Graphics
The bias attribute shifts the range of the filter. After applying the kernelMatrix of the <feConvolveMatrix> element to the input image to yield a number and applied the divisor attribute, the bias attribute is added to each component. This allows representation of values that would otherwise be clamped to 0 or 1. Usage notes Value <number> Default value 0
Animatable Yes One application of bias is when it is desirable to have 0.5 gray value be the zero response of the filter. Specifications Specification Status Comment Filter Effects Module Level 1The definition of 'bias' in that specification. Working Draft No change Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'bias' in that specifica...
by - SVG: Scalable Vector Graphics
When a list of values is defined via the values attribute, the by attribute is ignored. Specifications Specification Status Comment SVG Animations Level 2The definition of 'by' in that specification. Editor's Draft No change Scalable Vecto...
calcMode - SVG: Scalable Vector Graphics
The default mode is linear, however if the attribute does not support linear interpolation (e.g. for strings), the calcMode attribute is ignored and discrete interpolation is used. Four elements are using this attribute: <animate>, <animateColor>, <animateMotion>, and <animateTransform> Usage notes Value discrete | linear | paced | spline Default value linear
Animatable No discrete This specifies that the animation function will jump from one value to the next without any interpolation. linear Simple linear interpolation between values is used to calculate the animation function. Except for <animateMotion>, this is the default value. paced Defines interpolation to produce an even pace of change across the animation. This is only supported for va...
cap-height - SVG: Scalable Vector Graphics
eight attribute defines the height of uppercase glyphs of the font within the font coordinate system. Note: It was specified to share the syntax and semantics of the obsolete cap-height descriptor of the @font-face at-rule defined in an early version of CSS 2. Only one element is using this attribute: <font-face> Usage notes Value <number> Default value None
Animatable No Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'cap-height' in that specification. Recommendation Initial definition ...
class - SVG: Scalable Vector Graphics
owever, multiple class names must be separated by whitespace characters. An element's class name serves two key roles: As a style sheet selector, for when an author assigns style information to a set of elements. For general use by the browser. You can use this class to style SVG content using CSS. Usage context Categories None Value <list-of-class-names>
Animatable Yes Normative document SVG 1.1 (2nd Edition): The class attribute List-of-Ts <list-of-Ts> (Where T is some type.) A list consists of a separated sequence of values. Unless explicitly described differently, lists within SVG's XML attributes can be either comma-separated (with optional white space before or after the comma), or white space-separated. White space in lis...
clip-path - SVG: Scalable Vector Graphics
m-right: Apply a CSS basic shape on a view-box geometry. This is the same as having a custom clipping path with a clipPathUnits set to userSpaceOnUse --> <rect x="11" y="11" width="8" height="8" stroke="green" clip-path="circle() view-box" /> </svg> Usage notes Value <url> | [ <basic-shape> || <geometry-box> ] | none Default value none
Animatable Yes <geometry-box> An extra information to tell how a <basic-shape> is applied to an element: fill-box indicates to use the object bounding box; stroke-box indicates to use the object bounding box extended with the stroke; view-box indicates to use the nearest SVG viewport as the reference box. Note: For more details on the clip-path syntax, see the CSS property clip-path reference...
clip-rule - SVG: Scalable Vector Graphics
t on the object defining the clipping shape: <g> <clipPath id="MyClip"> <path d="..." /> </clipPath> <rect clip-path="url(#MyClip)" clip-rule="evenodd" ... /> </g> As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet Usage context Categories Presentation attribute Value nonzero | evenodd | inherit
Animatable Yes Normative document SVG 1.1 (2nd Edition) nonzero See description of fill-rule property. evenodd See description of fill-rule property. Example <svg width="100" viewBox="0 0 100 90" xmlns="http://www.w3.org/2000/svg" version="1.1"> <!-- Define star path --> <defs> <path d="M50,0 21,90 98,35 2,35 79,90z" id="star" /> </defs> <!-- Left: evenodd --> <c...
clip - SVG: Scalable Vector Graphics
"> <circle cx="5" cy="5" r="4" stroke="green" /> </svg> <!-- Rect(top, right, bottom, left) clipping --> <svg x="10" width="10" height="10" clip="rect(1, 9, 8, 2)"> <circle cx="5" cy="5" r="4" stroke="green" /> </svg> </svg> Usage notes Warning: This property is deprecated. Use clip-path instead. Value auto | rect() Default value auto
Animatable Yes The value auto defines a clipping path along the bounds of the viewport created by the given element.The value rect() defines a clipping rectangle following the following syntax: rect(<top>, <right>, <bottom>, <left>). The <top> and <bottom> values specify offsets from the top border edge of the element viewport, while <right> and <left> specify offsets from the left border edge of ...
clipPathUnits - SVG: Scalable Vector Graphics
"url(#myClip1)" xlink:href="#r3" fill="red" /> <!-- The last rect is clipped with objectBoundingBox units --> <use clip-path="url(#myClip2)" xlink:href="#r4" fill="red" /> </svg> clipPath For <clipPath>, clipPathUnits define the coordinate system in use for the content of the element. Value userSpaceOnUse | objectBoundingBox Default value userSpaceOnUse
Animatable Yes userSpaceOnUse This value indicates that all coordinates inside the <clipPath> element refer to the user coordinate system as defined when the clipping path was created. objectBoundingBox This value indicates that all coordinates inside the <clipPath> element are relative to the bounding box of the element the clipping path is applied to. It means that the origin of the coordin...
color-interpolation-filters - SVG: Scalable Vector Graphics
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-interpolation - SVG: Scalable Vector Graphics
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-profile - SVG: Scalable Vector Graphics
to define which color profile a raster image included through the <image> element should use. Note: As a presentation attribute, color-profile can be used as a CSS property. As a presentation attribute, it can be applied to any element but it only has an effect on the following element: <image> Usage notes Value auto | sRGB | <name> | <iri> Default value auto
Animatable Yes auto All colors are presumed to be defined in the sRGB color space unless a more precise embedded profile is specified within content data. For images that do have a profile built into their data, that profile is used. For images that do not have a profile, the sRGB profile is used. sRGB The source profile is assumed to be sRGB. This differs from auto in that it overrides an em...
color-rendering - SVG: Scalable Vector Graphics
optimizeSpeed Indicates that the user agent shall emphasize rendering speed over quality. For RGB display devices, this option will sometimes cause the user agent to perform color interpolation and compositing in the device RGB...
color - SVG: Scalable Vector Graphics
stop-color, flood-color, and lighting-color attributes. Note: As a presentation attribute, color can be used as a CSS property. See CSS color for further information. As a presentation attribute, it can be applied to any element, but as noted above, it has no direct effect on SVG elements. ...
contentScriptType - SVG: Scalable Vector Graphics
scripting language used to process the value strings in event attributes. This language must be used for all instances of script that do not specify their own scripting language. The value specifies a media type, per MIME Part Two: Media Types [RFC2046]. Usage notes Value One of the content types specified in the Media Types Default value application/ecmascript
Animatable No Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'contentScriptType' in that specification. Recommendation Initial definition ...
contentStyleType - SVG: Scalable Vector Graphics
fragment on the <svg> element. This language is used for all instances of style that do not specify their own styling language, such as the style attribute that is available on many elements. The value specifies a media type, per MIME Part Two: Media Types [RFC2046]. Usage notes Value One of the content types specified in the Media Types Default value text/css
Animatable No Since CSS is the only widely deployed style sheet language for online styling and it's already defined as default value if contentStyleType is ommitted, the attribute is not well supported in user agents. If other style sheet languages become more popular they might not use the style attribute, instead it could be easily declared which style language is used in the <style>'s type att...
cursor - SVG: Scalable Vector Graphics
ation attribute, it also can be used as a property directly inside a CSS stylesheet, see css cursor for further information. Usage context Categories Presentation attribute Value [[<funciri>,]* [ auto | crosshair | default | pointer | move | e-resize | ne-resize | nw-resize | n-resize | se-resize | sw-resize | s-resize | w-resize| text | wait | help ]] | inherit
Animatable Yes Normative document SVG 1.1 (2nd Edition) <FuncIRI> Functional notation for a reference. The syntax for this reference is the same as the css uri. Elements The following elements can use the cursor attribute Container elements >> Graphics elements >> Browser compatibility The compatibility table on this page is generated from structured data. If you'd like to...
descent - SVG: Scalable Vector Graphics
The descent attribute defines the maximum unaccented depth of the font. Note: It was specified to share the syntax and semantics of the obsolete descent descriptor of the @font-face at-rule defined in an early version of CSS 2. Only one element is using this attribute: <font-face> Usage notes Value <number> Default value Value of vert-origin-y
Animatable No Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'descent' in that specification. Recommendation Initial definition ...
direction - SVG: Scalable Vector Graphics
lements, including: <altGlyph>, <textPath>, <text>, <tref>, and <tspan>. html, body, svg { height: 100%; } <svg viewBox="0 0 600 72" xmlns="http://www.w3.org/2000/svg" direction="rtl" lang="fa"> <text x="300" y="50" text-anchor="middle" font-size="36">?????? SVG 1.1 SE ???? ?? ???.</text> </svg> Usage notes Value ltr | rtl Default value ltr
Animatable Yes Specifications Specification Status Comment CSS Writing Modes Module Level 3The definition of 'direction' in that specification. Proposed Recommendation Definition in CSS Scalable Vector Graphics (SVG) 2The definition of 'direction' in that specification. Candidate Recommendation Refers to the CSS Writing Modes specification of the d...
display - SVG: Scalable Vector Graphics
Specifications Specification Status Comment Scalable Vector Graphics (SVG) 2The definition of 'display' in that specification. Candidate Recommendation Refers to the CSS 2 specification of the display property, but outlines the differences regarding SVG. Scalable V...
divisor - SVG: Scalable Vector Graphics
If the specified divisor is 0 then the default value will be used instead. Specifications Specification Status Comment Filter Effects Module Level 1The definition of 'divisor' in that specification. Working Draft No change Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'di...
dominant-baseline - SVG: Scalable Vector Graphics
If the writing-mode is horizontal, then the value of the dominant-baseline component is alphabetic. Otherwise, if the writing-mode is vertical, then the value of the dominant-baseline component is central. If this property occurs on a <tspan>, <tref...
dur - SVG: Scalable Vector Graphics
The value must be greater than 0 and can be expressed with hours (h), minutes (m), seconds (s) or milliseconds (ms). It's possible to combine those time representations to create some complex durations like hh:mm:ss.iii or mm:ss.iii. media This value specifies the simple duration as the intrinsic media duratio...
elevation - SVG: Scalable Vector Graphics
Working Draft No change Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'elevation' in that specification. Recommendation Initial definition ...
enable-background - SVG: Scalable Vector Graphics
enable-background can be used as a CSS property. As a presentation attribute, it can be applied to any element but it has effect only on the following eleven elements: <a>, <defs>, <glyph>, <g>, <marker>, <mask>, <missing-glyph>, <pattern>, <svg>, <switch>, and <symbol> Context notes Value accumulate | new [ <x> <y> <width> <height> ]? Default value accumulate
Animatable No accumulate If an ancestor container element has a property value of enable-background: new, then all graphics elements within the current container element are rendered both onto the parent container element's background image canvas and onto the target device. Otherwise, there is no current background image canvas, so graphics elements are only rendered onto the target device...
end - SVG: Scalable Vector Graphics
The end attribute defines an end value for the animation that can constrain the active duration. Five elements are using this attribute: <animate>, <animateColor>, <animateMotion>, <animateTransform>, and <set> Usage notes Default value None Value <end-value-list>
Animatable No The <end-value-list> is a semicolon-separated list of values. Each value can be one of the following: <offset-value> This value defines a clock-value that represents a point in time relative to the beginning of the SVG document (usually the load or DOMContentLoaded event). Negative values are valid. <syncbase-value> This value defines a syncbase and an optional offset from that syncbase. The element's animation end time is defined relative to the begin or active end of anot...
externalResourcesRequired - SVG: Scalable Vector Graphics
y setting externalResourcesRequired="true" on the outermost <svg> element on a universal basis. Instead, it is better to specify externalResourcesRequired="true" on those particular graphics elements or container elements which specifically need the availability of external resources in order to render properly. Usage notes Value false | true Default value false
Animatable No true This value indicates that resources external to the current document are required. If an external resource is not available, progressive rendering is suspended, the document's SVGLoad event is not fired and the animation timeline does not begin until that resource and all other required resources become available, have been parsed and are ready to be rendered. false This va...
fill-rule - SVG: Scalable Vector Graphics
,90 98,35 2,35 79,90"/> <!-- The center of the shape has two path segments (shown by the red stroke) between it and infinity. It is therefore considered outside the shape, and not filled. --> <polygon fill-rule="evenodd" stroke="red" points="150,0 121,90 198,35 102,35 179,90"/> </svg> Usage notes Value nonzero | evenodd Default value nonzero
Animatable Yes The fill-rule attribute provides two options for how the inside (that is, the area to be filled) of a shape is determined: nonzero The value nonzero determines the "insideness" of a point in the shape by drawing a ray from that point to infinity in any direction, and then examining the places where a segment of the shape crosses the ray. Starting with a count of zero, add one each...
filter - SVG: Scalable Vector Graphics
graphics elements and the <use> element. html, body, svg { height: 100%; } <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <filter id="blur"> <feGaussianBlur stdDeviation="2" /> </filter> <rect x="10" y="10" width="80" height="80" filter="url(#blur)" /> </svg> Usage notes Value none | <filter-function-list> Default value none
Animatable Yes For a description of the values see the css filter property. Specifications Specification Status Comment Filter Effects Module Level 1The definition of 'filter' in that specification. Working Draft Extended the values by several special filter functions. Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'filter' in that...
filterRes - SVG: Scalable Vector Graphics
small of a value may result in unwanted pixelation in the result. Too large of a value may result in slow processing and large memory usage. Note that negative values or zero values disable the rendering of the element which referenced the filter. Only one element is using this attribute: <filter> Usage notes Value <number-optional-number> Default value None
Animatable Yes <number-optional-number> This value takes one or two values, the first one outlining the resolution in horizontal direction, the second one in vertical direction. If only one value is specified, it is used for both directions. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'filterRes'...
filterUnits - SVG: Scalable Vector Graphics
The filterUnits attribute defines the coordinate system for the attributes x, y, width and height. Only one element is using this attribute: <filter> Usage notes Value userSpaceOnUse | objectBoundingBox Default value objectBoundingBox
Animatable Yes userSpaceOnUse x, y, width and height represent values in the current coordinate system that results from taking the current user coordinate system in place at the time when the <filter> element is referenced (i.e., the user coordinate system for the element referencing the <filter> element via a filter attribute). objectBoundingBox In that case, x, y, width and height represent fractions or percentages of the bounding box on the referencing element. Specifications Specification Status...
flood-color - SVG: Scalable Vector Graphics
Working Draft Removed the <icccolor> value and aligned the value to the CSS color value. Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'flood-color' in that specification. Recommendation ...
flood-opacity - SVG: Scalable Vector Graphics
A number of 0 or a percentage of 0% represents a fully transparent color, 1 or 100% represents a fully opaque color. Specifications Specification Status Comment Filter Effects Module Level 1The definition of 'flood-opacity' in th...
font-family - SVG: Scalable Vector Graphics
Specifications Specification Status Comment CSS Fonts Module Level 4The definition of 'generic font families' in that specification. Working Draft Adds new generic font families, specifically: system-ui, emoji, math, and fangsong. CSS Fonts Module Level 3The de...
font-size-adjust - SVG: Scalable Vector Graphics
if" font-size="10px"> This text uses the Verdana font (10px), which has relatively large lowercase letters. </text> <text y="60" font-family="Times, serif" font-size="10px" font-size-adjust="0.58"> This is the 10px Times, but now adjusted to the same aspect ratio as the Verdana. </text> </svg> Usage notes Default value none Value none | <number>
Animatable Yes none Choose the size of the font based only on the font-size property. <number> Choose the size of the font so that its lowercase letters (as determined by the x-height of the font) are the specified number times the font-size. The number specified should generally be the aspect ratio (ratio of x-height to font size) of the first choice font-family. This means that the firs...
font-size - SVG: Scalable Vector Graphics
Specifications Specification Status Comment CSS Fonts Module Level 3The definition of 'font-size' in that specification. Candidate Recommendation No change Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'font-size' in that specification. ...
font-stretch - SVG: Scalable Vector Graphics
Working Draft Adds the <percentage> syntax for variable fonts. CSS Fonts Module Level 3The definition of 'font-stretch' in that specification. Candidate Recommendation Initial definition of font-stretch in CSS F...
font-style - SVG: Scalable Vector Graphics
Specifications Specification Status Comment CSS Fonts Module Level 4The definition of 'font-style' in that specification. Working Draft No change CSS Fonts Module Level 3The definition of 'font-style' in that specification. Candidate Recommendation No chan...
font-variant - SVG: Scalable Vector Graphics
Specifications Specification Status Comment CSS Fonts Module Level 4The definition of 'font-variant' in that specification. Working Draft No change CSS Fonts Module Level 3The definition of 'font-variant' in that specification. Candidate Recommendation A...
font-weight - SVG: Scalable Vector Graphics
Specifications Specification Status Comment CSS Fonts Module Level 4The definition of 'font-weight' in that specification. Working Draft Defines font-weight to accept any numbers between 1 and 1000. CSS Fonts Module Level 3The definition of 'font-weight' in tha...
format - SVG: Scalable Vector Graphics
The format attribute indicates the format of the given font. Two elements are using this attribute: <altGlyph> and <glyphRef> Context notes Value <string> Default value None
Animatable No <string> This value specifies the format of the given font. Here is a list of font formats and their strings that can be used as values for this attribute: Format string Format truedoc-pfr TrueDoc(TM) Portable Font Resource embedded-opentype Embedded OpenType type-1 PostScript(TM) Type 1 truetype TrueType opentype OpenType, including TrueType Open truetype-gx TrueType with GX extensions speedo Speedo intellifont Intel...
fr - SVG: Scalable Vector Graphics
="0.35" fr="25%"> <stop offset="0%" stop-color="white"/> <stop offset="100%" stop-color="darkseagreen"/> </radialGradient> </defs> <circle cx="100" cy="100" r="100" fill="url(#gradient1)" /> <circle cx="100" cy="100" r="100" fill="url(#gradient2)" style="transform: translateX(240px);" /> </svg> Usage notes Value <length> Default value 0
Animatable None Example <svg viewBox="0 0 120 120" width="200" height="200" xmlns="http://www.w3.org/2000/svg"> <defs> <radialGradient id="Gradient" cx="0.5" cy="0.5" r="0.5" fx="0.35" fy="0.35" fr="5%"> <stop offset="0%" stop-color="red"/> <stop offset="100%" stop-color="blue"/> </radialGradient> </defs> <rect x="10" y="10" rx="15" ry="15" width="100" height="1...
from - SVG: Scalable Vector Graphics
When a list of values is defined via the values attribute, the from attribute is ignored. Specifications Specification Status Comment SVG Animations Level 2The definition of 'from' in that specification. Editor's Draft No change Scalable V...
fx - SVG: Scalable Vector Graphics
agreen"/> </radialGradient> </defs> <circle cx="100" cy="100" r="100" fill="url(#gradient1)" /> <circle cx="100" cy="100" r="100" fill="url(#gradient2)" style="transform: translateX(240px);" /> </svg> Usage notes Value <length> Default value Coincides with the presentational value of cx for the element whether the value for cx was inherited or not. ...
fy - SVG: Scalable Vector Graphics
agreen"/> </radialGradient> </defs> <circle cx="100" cy="100" r="100" fill="url(#gradient1)" /> <circle cx="100" cy="100" r="100" fill="url(#gradient2)" style="transform: translateX(240px);" /> </svg> Usage notes Value <length> Default value Coincides with the presentational value of cy for the element whether the value for cy was inherited or not. ...
g1 - SVG: Scalable Vector Graphics
names which identify a set of possible first glyphs in the kerning pair. All glyphs with the given glyph name are included in the set. The total set of possible first glyphs in the kerning pair is the union of glyphs specified by the u1 and g1 attributes. Two elements are using this attribute: <hkern> and <vkern> Context notes Value <name># Default value None
Animatable No <name># This value indicates a comma-separated sequence of glyph names (i.e., values that match glyph-name attributes on <glyph> elements) which identify a set of possible first glyphs in the kerning pair. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'g1' in that specification. ...
g2 - SVG: Scalable Vector Graphics
mes which identify a set of possible second glyphs in the kerning pair. All glyphs with the given glyph name are included in the set. The total set of possible second glyphs in the kerning pair is the union of glyphs specified by the u2 and g2 attributes. Two elements are using this attribute: <hkern> and <vkern> Context notes Value <name># Default value None
Animatable No <name># This value indicates a comma-separated sequence of glyph names (i.e., values that match glyph-name attributes on <glyph> elements) which identify a set of possible second glyphs in the kerning pair. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'g2' in that specification. ...
glyph-name - SVG: Scalable Vector Graphics
ations where Unicode character numbers do not provide sufficient information to access the correct glyph, such as when there are multiple glyphs per Unicode character. The glyph names can be referenced in kerning definitions created by <hkern> and <vkern> elements. Only one element is using this attribute: <glyph> Context notes Value <name># Default value None
Animatable No <name># This value specifies a comma-separated list of names for the glyph. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'glyph-name' in that specification. Recommendation Initial definition ...
glyph-orientation-horizontal - SVG: Scalable Vector Graphics
only to text written in a horizontal writing-mode. Note: As a presentation attribute, glyph-orientation-horizontal can be used as a CSS property. As a presentation attribute, it can be applied to any element but it has effect only on the following five elements: <altGlyph>, <textPath>, <text>, <tref>, and <tspan> Context notes Value <angle> Default value 0deg
Animatable No <angle> The value of the angle is restricted to 0, 90, 180, and 270 degrees. If another angle is specified, it is rounded to the closest of the permitted values. A value of 0deg indicates that all glyphs are set with the top of the glyphs oriented towards the reference orientation. A value of 90deg indicates an orientation of 90 degrees clockwise from the reference orientation...
glyph-orientation-vertical - SVG: Scalable Vector Graphics
ly to text written in a vertical writing-mode. Note: As a presentation attribute, glyph-orientation-vertical can be used as a CSS property. As a presentation attribute, it can be applied to any element but it has effect only on the following five elements: <altGlyph>, <textPath>, <text>, <tref>, and <tspan> Context notes Value auto | <angle> Default value auto
Animatable No auto Fullwidth ideographic and fullwidth Latin text will be set with a glyph orientation of 0 degrees. Ideographic punctuation and other ideographic characters having alternate horizontal and vertical forms will use the vertical form of the glyph. Text which is not fullwidth will be set with a glyph orientation of 90 degrees. This reorientation rule applies only to the first-l...
hanging - SVG: Scalable Vector Graphics
The hanging attribute indicates the alignment coordinate for glyphs to achieve hanging baseline alignment for horizontally oriented glyph layouts. The value is an offset in the font coordinate system. Only one element is using this attribute: <font-face> Usage notes Value <number> Default value None
Animatable No <number> This value indicates the alignment coordinate for the glyphs. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'hanging' in that specification. Recommendation Initial definition ...
horiz-adv-x - SVG: Scalable Vector Graphics
The horiz-adv-x attribute indicates the horizontal advance after rendering a glyph in horizontal orientation. Three elements are using this attribute: <font>, <glyph>, and <missing-glyph> font For <font> elements, horiz-adv-x specifies the default horizontal advance of a glyph in horizontal orientation. Value <number> Default value None
Animatable No <number> This value indicates the horizontal advance of the glyph. glyph, missing-glyph For <glyph> and <missing-glyph> elements, horiz-adv-x specifies the horizontal advance of the glyph in horizontal orientation. Value <number> Default value <font>'s horiz-adv-x value
Animatable No <number> This value indicates the horizontal advance of the glyph. S...
horiz-origin-x - SVG: Scalable Vector Graphics
The horiz-origin-x attribute indicates the x-coordinate in the font coordinate system of the origin of a glyph to be used when drawing horizontally oriented text. Note: The origin applies to all glyphs in the font. Only one element is using this attribute: <font> Usage notes Value <number> Default value 0
Animatable No <number> This value indicates the x-coordinate of the origin of a glyph for horizontally oriented text. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'horiz-origin-x' in that specification. Recommendation Initial definition ...
horiz-origin-y - SVG: Scalable Vector Graphics
The horiz-origin-y attribute indicates the y-coordinate in the font coordinate system of the origin of a glyph to be used when drawing horizontally oriented text. Note: The origin applies to all glyphs in the font. Only one element is using this attribute: <font> Usage notes Value <number> Default value 0
Animatable No <number> This value indicates the x-coordinate of the origin of a glyph for horizontally oriented text. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'horiz-origin-y' in that specification. Recommendation Initial definition ...
id - SVG: Scalable Vector Graphics
using this attribute. <svg width="120" height="120" viewBox="0 0 120 120" xmlns="http://www.w3.org/2000/svg"> <style type="text/css"> <![CDATA[ #smallRect { stroke: #000066; fill: #00cc00; } ]]> </style> <rect id="smallRect" x="10" y="10" width="100" height="100" /> </svg> Usage notes Value <id> Default value None
Animatable No <id> Specifies the element's ID. The ID must be unique within the node tree, must not be an empty string, and must not contain any whitespace characters. Note: You should avoid the use of id values that would be parsed as an SVG view specification (e.g., MyDrawing.svg#svgView(viewBox(0,200,1000,1000))) or a basic media fragment when used as a URL target fragment. It mu...
ideographic - SVG: Scalable Vector Graphics
The ideographic attribute indicates the alignment coordinate for glyphs to achieve ideographic baseline alignment for horizontally oriented glyph layouts. The value is an offset in the font coordinate system. Only one element is using this attribute: <font-face> Usage notes Value <number> Default value None
Animatable No <number> This value indicates the alignment coordinate for the glyphs. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'ideographic' in that specification. Recommendation Initial definition ...
image-rendering - SVG: Scalable Vector Graphics
t device is indexed color. Note: As a presentation attribute, image-rendering can be used as a CSS property. See the css image-rendering property for more information. As a presentation attribute, it can be applied to any element but it has effect only on the following element: <image> Usage notes Value auto | optimizeSpeed | optimizeQuality Default value auto
Animatable Yes auto Indicates that the user agent shall make appropriate tradeoffs to balance speed and quality, but quality shall be given more importance than speed. optimizeSpeed Indicates that the user agent shall emphasize rendering speed over quality. optimizeQuality Indicates that the user agent shall emphasize quality over rendering speed. Specifications Specification ...
in - SVG: Scalable Vector Graphics
SourceAlpha This keyword represents the graphics elements that were the original input into the <filter> element. SourceAlpha has all of the same rules as SourceGraphic except that only the alpha channel is used. BackgroundImage This keyword represents an image ...
intercept - SVG: Scalable Vector Graphics
Working Draft No change Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'intercept' in that specification. Recommendation Initial definition ...
k - SVG: Scalable Vector Graphics
The k attribute specifies the amount for decreasing the spacing between the two glyphs in a kerning pair. The value is in the font coordinate system. This attribute is required. Two elements are using this attribute: <hkern> and <vkern> Context notes Value <number> Default value None
Animatable No <number> This value indicates the amount for decreasing the spacing between the two glyphs in the kerning pair. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'k' in that specification. Recommendation Initial definition ...
k1 - SVG: Scalable Vector Graphics
Working Draft No change Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'k1' in that specification. Recommendation Initial definition ...
k2 - SVG: Scalable Vector Graphics
Working Draft No change Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'k2' in that specification. Recommendation Initial definition ...
k3 - SVG: Scalable Vector Graphics
Working Draft No change Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'k3' in that specification. Recommendation Initial definition ...
markerHeight - SVG: Scalable Vector Graphics
The markerHeight attribute represents the height of the viewport into which the <marker> is to be fitted when it is rendered according to the viewBox and preserveAspectRatio attributes. Only one element is using this attribute: <marker> Usage notes Value <length-percentage> | <number> Default value 3
Animatable Yes <length-percentage> This value defines either an absolute or a relative height of the marker. Relative values refer to the height specified via the viewBox and preserveAspectRatio attributes. <number> This value defines the height of the marker in the units defined by the markerUnits attribute. A value of zero disables rendering of the element and negative values are an error. Specifications Specification Status Comme...
markerUnits - SVG: Scalable Vector Graphics
The markerUnits attribute defines the coordinate system for the markerWidth and markerUnits attributes and the contents of the <marker>. Usage notes Value userSpaceOnUse | strokeWidth Default value strokeWidth
Animatable Yes userSpaceOnUse This value specifies that the markerWidth and markerUnits attributes and the contents of the <marker> element represent values in the current user coordinate system in place for the graphic object referencing the marker (i.e., the user coordinate system for the element referencing the <marker> element via a marker, marker-start, marker-mid, or marker-end property). strokeWidth This value specifies that the markerWidth and markerUnits attributes and the contents of the <marker> element represent values in a coordin...
markerWidth - SVG: Scalable Vector Graphics
The markerWidth attribute represents the width of the viewport into which the <marker> is to be fitted when it is rendered according to the viewBox and preserveAspectRatio attributes. Only one element is using this attribute: <marker> Usage notes Value <length-percentage> | <number> Default value 3
Animatable Yes <length-percentage> This value defines either an absolute or a relative width of the marker. Relative values refer to the width specified via the viewBox and preserveAspectRatio attributes. <number> This value defines the width of the marker in the units defined by the markerUnits attribute. A value of zero disables rendering of the element and negative values are an error. Specifications Specification Status Comment ...
mask - SVG: Scalable Vector Graphics
Candidate Recommendation Extends its usage to HTML elements. Extends its syntax by making it a shorthand for the new mask-* properties defined in that specification. Scalable Vector Graphics (SVG) 1.1 (Second Edition)Th...
maskContentUnits - SVG: Scalable Vector Graphics
<use mask="url(#myMask1)" xlink:href="#r3" fill="red" /> <!-- The last rect is masked with objectBoundingBox units --> <use mask="url(#myMask2)" xlink:href="#r4" fill="red" /> </svg> mask For <mask>, maskContentUnits defines the coordinate system in use for the content of the element. Value userSpaceOnUse | objectBoundingBox Default value userSpaceOnUse
Animatable Yes userSpaceOnUse This value indicates that all coordinates inside the <mask> element refer to the user coordinate system as defined when the mask was created. objectBoundingBox This value indicates that all coordinates inside the <mask> element are relative to the bounding box of the element the mask is applied to. A bounding box could be considered the same as if the content of ...
maskUnits - SVG: Scalable Vector Graphics
ref="#r3" fill="red" /> <!-- The last rect is masked with objectBoundingBox units --> <use mask="url(#myMask2)" xlink:href="#r4" fill="red" /> </svg> mask For <mask>, maskUnits defines the coordinate system in use for the geometry attributes (x, y, width and height) of the element. Value userSpaceOnUse | objectBoundingBox Default value objectBoundingBox
Animatable Yes userSpaceOnUse This value indicates that all coordinates for the geometry attributes refer to the user coordinate system as defined when the mask was created. objectBoundingBox This value indicates that all coordinates for the geometry attributes represent fractions or percentages of the bounding box of the element to which the mask is applied. A bounding box could be considere...
mathematical - SVG: Scalable Vector Graphics
The mathematical attribute indicates the alignment coordinate for glyphs to achieve mathematical baseline alignment for horizontally oriented glyph layouts. The value is an offset in the font coordinate system. Only one element is using this attribute: <font-face> Usage notes Value <number> Default value None
Animatable No <number> This value indicates the alignment coordinate for the glyphs. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'mathematical' in that specification. Recommendation Initial definition ...
max - SVG: Scalable Vector Graphics
The value must be greater than 0. Specifications Specification Status Comment SVG Animations Level 2The definition of 'max' in that specification. Editor's Draft No change Scalable Vector Graphics (SVG) 1.1 (Second Edition)The de...
media - SVG: Scalable Vector Graphics
If not specified, the style sheet is applied unconditionally. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 2The definition of 'media' in that specification. Candidate Recommendation Changed the v...
method - SVG: Scalable Vector Graphics
The method attribute indicates the method by which text should be rendered along the path of a <textPath> element. Only one element is using this attribute: <textPath> textPath For <textPath>, method indicates the method by which text should be rendered along the path. Value align | stretch Default value align
Animatable Yes align This value indicates that the characters should be rendered so that they are not stretched or warped. The characters are rotated, scaled and stretched when they are rendered. As a result, for fonts with connected characters (e.g. cursive fonts), the connections may not align properly when text is rendered along the path. stretch This value indicates that the character outlines will be converted into paths, and ...
min - SVG: Scalable Vector Graphics
The value must be greater than 0. Specifications Specification Status Comment SVG Animations Level 2The definition of 'min' in that specification. Editor's Draft No change Scalable Vector Graphics (SVG) 1.1 (Second Edition)The de...
mode - SVG: Scalable Vector Graphics
Specifications Specification Status Comment Filter Effects Module Level 1The definition of 'mode' in that specification. Working Draft No change Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'mode' in that specification. Recommendation Initial definition ...
numOctaves - SVG: Scalable Vector Graphics
Negative values are forbidden. Example <svg width="200" height="200" viewBox="0 0 220 220" xmlns="http://www.w3.org/2000/svg"> <filter id="displacementFilter"> <feTurbulence baseFrequency="0.05" numOctaves="3" result="turbulence"/> <feDisplacementMap in2="turbulence" in="SourceGraphic" scale="50" xChannelS...
onclick - SVG: Scalable Vector Graphics
Candidate Recommendation No change Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'onclick' in that specification. Recommendation Initial definition ...
opacity - SVG: Scalable Vector Graphics
Any values outside the range 0.0 (fully transparent) to 1.0 (fully opaque) will be clamped to this range. Specifications Specification Status Comment CSS Color Module Level 4The definition of 'opacity' in that specification. Working Draft Defines in...
order - SVG: Scalable Vector Graphics
The values provided must be <integer>s greater than zero. Values that are not integers will be truncated, i.e. rounded to the closest integer value towards zero. The first number, indicates the number of columns in the matrix. The second number, indicates the number of row...
orient - SVG: Scalable Vector Graphics
auto-start-reverse If placed by marker-start, the marker is oriented 180? different from the orientation that would be used if auto where specified. For all other markers, auto-start-reverse me...
orientation - SVG: Scalable Vector Graphics
The orientation attribute indicates that the given glyph is only to be used for a particular text direction, i.e. horizontal or vertical. Only one element is using this attribute: <glyph> Usage notes Value h | v Default value None (meaning glyph can be used for both text directions)
Animatable Yes h This value indicates that the glyph is only used for a horizontal text direction. v This value indicates that the glyph is only used for a vertical text direction. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'orientation' in that specification. Recommendation Initial definition ...
origin - SVG: Scalable Vector Graphics
The origin attribute specifies the origin of motion for an animation. It has no effect in SVG. Only one element is using this attribute: <animateMotion> Context notes Value default Default value default
Animatable No Specifications Specification Status Comment SVG Animations Level 2The definition of 'origin' in that specification. Editor's Draft No change Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'origin' in that specification. Recommendation Initial definition (referring to SMIL Animation specification) ...
overflow - SVG: Scalable Vector Graphics
Specifications Specification Status Comment CSS Level 2 (Revision 1)The definition of 'overflow' in that specification. Recommendation Definition in CSS Scalable Vector Graphics (SVG) 2The definition of 'overflow' in that specification. Candidate Recommendation S...
paint-order - SVG: Scalable Vector Graphics
a presentation attribute, paint-order can be used as a CSS property. As a presentation attribute, it can be applied to any element but it has effect only on the following ten elements: <circle>, <ellipse>, <line>, <path>, <polygon>, <polyline>, <rect>, <text>, <textPath>, and <tspan> Usage notes Value normal | [ fill || stroke || markers ] Default value normal
Animatable Yes normal This value indicates that the fill will be painted first, then the stroke, and finally the markers. [ fill || stroke || markers ] The order of these three keywords indicates the order in which the painting happens, from left to right. If any of the three painting components is omitted, they will be painted in their default order after the specified components. For exampl...
panose-1 - SVG: Scalable Vector Graphics
ystem consists of a set of ten numbers that categorize the key attributes of a Latin typeface, a classification procedure for creating those numbers, and mapper software that determines the closest possible font match given a set of typefaces. Only one element is using this attribute: <font-face> Usage notes Value <integer>{10} Default value 0 0 0 0 0 0 0 0 0 0
Animatable No <integer>{10} This value specifies a Panose-1 number and consists of ten decimal integers, separated by whitespace. The initial value zero for each PANOSE digit means "any", i.e. all fonts will match the Panose number if this value is used. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition o...
patternContentUnits - SVG: Scalable Vector Graphics
idth="80" height="80" fill="url(#p1)" /> <!-- Right square with bounding box tiles --> <rect x="110" y="10" width="80" height="80" fill="url(#p2)" /> </svg> pattern For <pattern>, patternContentUnits defines the coordinate system in use for the content of the element. Value userSpaceOnUse | objectBoundingBox Default value userSpaceOnUse
Animatable Yes userSpaceOnUse This value indicates that all coordinates inside the <pattern> element refer to the user coordinate system as defined when the pattern tile was created. objectBoundingBox This value indicates that all coordinates inside the <pattern> element are relative to the bounding box of the element the pattern is applied to. A bounding box could be considered the same as i...
patternTransform - SVG: Scalable Vector Graphics
es a list of transform definitions that are applied to a pattern tile. Note: As of SVG2, it is also allowed to use the CSS transform property. However, the current state of implementation isn't very good. For backward compatibility reason, it is highly suggested to keep using the patternTransform attribute. Value <transform-list> Default value Identity transform
Animatable Yes Transform functions To know more about the definition of transform functions, see the transform attribute definition. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 2The definition of 'patternTransform' in that specification. Candidate Recommendation Scalable Vector Graphics (SVG) 1.1 (Second Edition)The def...
patternUnits - SVG: Scalable Vector Graphics
l="url(#p1)" /> <!-- Right square with bounding box tiles --> <rect x="110" y="10" width="80" height="80" fill="url(#p2)" /> </svg> pattern For <pattern>, patternUnits defines the coordinate system in use for the geometry properties (x, y, width and height) of the element. Value userSpaceOnUse | objectBoundingBox Default value objectBoundingBox
Animatable Yes userSpaceOnUse This value indicates that all coordinates for the geometry properties refer to the user coordinate system as defined when the pattern was applied. objectBoundingBox This value indicates that all coordinates for the geometry properties represent fractions or percentages of the bounding box of the element to which the mask is applied. A bounding box could be consid...
pointer-events - SVG: Scalable Vector Graphics
Browser compatibility The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. DesktopMobileChromeEdgeFirefoxInternet ExplorerOperaSa...
pointsAtX - SVG: Scalable Vector Graphics
Working Draft No change Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'pointsAtX' in that specification. Recommendation Initial definition ...
pointsAtY - SVG: Scalable Vector Graphics
Working Draft No change Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'pointsAtY' in that specification. Recommendation Initial definition ...
side - SVG: Scalable Vector Graphics
right This value places the text on the right side of the path (relative to the path direction). This effectively reverses the path direction. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 2The definition of 'side' in that sp...
slope - SVG: Scalable Vector Graphics
The slope attribute indicates the vertical stroke angle of a font. Only one element is using this attribute: <font-face> Usage notes Value <number> Default value 0
Animatable No <number> This value indicates the vertical stroke angle of the font. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'slope' in that specification. Recommendation Initial definition ...
spacing - SVG: Scalable Vector Graphics
The spacing attribute indicates how the user agent should determine the spacing between typographic characters that are to be rendered along a path. Only one element is using this attribute: <textPath> Usage notes Value auto | exact Default value exact
Animatable Yes auto This value indicates that the user agent should use text-on-a-path layout algorithms to adjust the spacing between typographic characters in order to achieve visually appealing results. exact This value indicates that the typographic characters should be rendered exactly according to the spacing rules as specified by the layout rules for text-on-a-path. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 2The definition of 'spa...
startOffset - SVG: Scalable Vector Graphics
130,70 165,70 Q190,70 195,50" /> <text> <textPath href="#path1" startOffset="0"> Quick brown fox jumps over the lazy dog. </textPath> </text> <text> <textPath href="#path2" startOffset="40"> Quick brown fox jumps over the lazy dog. </textPath> </text> </svg> Usage notes Value <length-percentage> | <number> Default value 0
Animatable Yes <length-percentage> A length represents a distance along the path measured in the current user coordinate system for the <textPath> element. If a percentage is given, then the start offset represents a percentage distance along the entire path. Thus, 0% indicates the start point of the path and 100% indicates the end point of the path. <number> This value indicates a dist...
stdDeviation - SVG: Scalable Vector Graphics
The second value represents a standard deviation along the y-axis. If one number is provided, then that value is used for both X and Y. A negative value is forbidden. A value of zero disables the effect of the given filter primitive (i.e., the result i...
stemh - SVG: Scalable Vector Graphics
s on serifed "M" and "N", plus there may be different widths for uppercase and lowercase characters in the same font. Also, either by design or by error, all stems may have slightly different widths. If this attribute is used, the units-per-em must also be used. Only one element is using this attribute: <font-face> Usage notes Value <number> Default value None
Animatable No <number> This value indicates the horizontal stem width of the font. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'stemh' in that specification. Recommendation Initial definition ...
stemv - SVG: Scalable Vector Graphics
ement is meant for the dominant vertical stem in the font because there might be different groupings of vertical stems (e.g., one main one, and one lighter weight one as for an uppercase "M" or "N"). If this attribute is used, the units-per-em must also be used. Only one element is using this attribute: <font-face> Usage notes Value <number> Default value None
Animatable No <number> This value indicates the vertical stem width of the font. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'stemv' in that specification. Recommendation Initial definition ...
stitchTiles - SVG: Scalable Vector Graphics
Sometimes the result will show clear discontinuities at the tile borders. stitch This value indicates that the user agent will automatically adjust the x and y values of the base frequency such that the <feTurbulence> node's width and h...
stop-color - SVG: Scalable Vector Graphics
quivalent to specifying a stop-color with the value black and a stop-opacity with the value 0. Note: As a presentation attribute, stop-color can be used as a CSS property. As a presentation attribute, it can be applied to any element but it has effect only on the following element: <stop> Usage notes Value currentcolor | <color> <icccolor> Default value black
Animatable Yes currentcolor This keyword denotes the current fill color and can be specified in the same manner as within a <paint> specification for the fill and stroke attributes. <color> This value indicates a color value. <icccolor> This value refers to an ICC color profile. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 2The de...
stop-opacity - SVG: Scalable Vector Graphics
olor attribute. For stop-color values that don't include explicit opacity information, the opacity is treated as 1. Note: As a presentation attribute, stop-opacity can be used as a CSS property. As a presentation attribute, it can be applied to any element but it has effect only on the following element: <stop> Usage notes Value <opacity-value> Default value 1
Animatable Yes <opacity-value> This value is either a <number> between 0 and 1 or a <percentage> value specifying the opacity of the color gradient stop. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 2The definition of 'stop-opacity' in that specification. Candidate Recommendation Refers to the definition in CSS Colors 3, but all...
string - SVG: Scalable Vector Graphics
The string attribute is a hint to the user agent, and specifies a list of formats that the font referenced by the parent <font-face-uri> element supports. Only one element is using this attribute: <font-face-format> Usage notes Value <anything> Default value None
Animatable No <anything> This value specifies a list of formats that are supported by the font referenced by the parent <font-face-uri> element. The available types are: "woff", "woff2", "truetype", "opentype", "embedded-opentype", and "svg". See the src descriptor of the @font-face at-rule for more information. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'string' in that specification.
stroke-dasharray - SVG: Scalable Vector Graphics
If an odd number of values is provided, then the list of values is repeated to yield an even number of values. Thus, 5,3,2 is equivalent to 5,3,2,5,3,2. Browser compatibility The compatibility table on this page is generated from s...
stroke-dashoffset - SVG: Scalable Vector Graphics
Browser compatibility The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pu...
stroke-linecap - SVG: Scalable Vector Graphics
On a zero length subpath, the path will not be rendered at all. Example html,body,svg { height:100% } <svg viewBox="0 0 6 4" xmlns="http://www.w3.org/2000/svg"> <!-- Effect of the "butt" value --> <path d="M1,1 h4" stroke="black" stroke-linecap="butt" /> <!
stroke-linejoin - SVG: Scalable Vector Graphics
The arcs value indicates that an arcs corner is to be used to join path segments. The arcs shape is formed by extending the outer edges of the stroke at the join point with arcs that have the same curvature as the outer edges at the join point. Exa...
stroke-miterlimit - SVG: Scalable Vector Graphics
= miterLength stroke-width = 1 sin ( ? 2 ) For example, a miter limit of 1.414 converts miters to bevels for theta less than 90 degrees, a limit of 4.0 converts them for theta less than approximately 29 degrees, and a limit of 10.0 converts them for theta less than approximately 11.5 degrees. Usage context Value <number> Default value 4
Animatable Yes The value of stroke-miterlimit must be greater than or equal to 1. Browser compatibility The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. DesktopMobileChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidF...
stroke-width - SVG: Scalable Vector Graphics
Browser compatibility The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. DesktopMobileChromeEdgeFirefoxInternet ExplorerOperaSafa...
stroke - SVG: Scalable Vector Graphics
Candidate Recommendation Definition for shapes and texts. Adds context-fill and context-stroke. Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'stroke' in that specification. Recommendat...
style - SVG: Scalable Vector Graphics
. It functions identically to the style attribute in HTML. All elements are using this attribute. html,body,svg { height:100% } <svg viewbox="0 0 100 60" xmlns="http://www.w3.org/2000/svg"> <rect width="80" height="40" x="10" y="10" style="fill: skyblue; stroke: cadetblue; stroke-width: 2;"/> </svg> Usage notes Value <style> Default value None
Animatable No <style> The syntax of style data depends on the style sheet language. By default, the style sheet language is CSS. Note: In theory, the contentStyleType attribute could be used to specify styling languages other than CSS, like XSL(T). However, this was never implemented satisfactorily in browsers, so you should not rely on it. Specifications Specification Statu...
surfaceScale - SVG: Scalable Vector Graphics
eLighting> </filter> <rect x="0" y="0" width="200" height="200" style="filter: url(#diffuseLighting1);" /> <rect x="0" y="0" width="200" height="200" style="filter: url(#diffuseLighting2); transform: translateX(220px);" /> </svg> feSpecularLighting For <feSpecularLighting>, surfaceScale defines the height of the surface. Value <number> Default value 1
Animatable Yes feDiffuseLighting For <feDiffuseLighting>, surfaceScale defines the height of the surface. Value <number> Default value 1
Animatable Yes Specifications Specification Status Comment Filter Effects Module Level 1The definition of 'surfaceScale for <feDiffuseLighting>' in that specification. Working Draft N...
systemLanguage - SVG: Scalable Vector Graphics
systemLanguage is often used in conjunction with the <switch> element. If the attribute is used in other situations, then it represents a simple switch on the given element whether to render the element or not. Note: If several alternative language obj...
tabindex - SVG: Scalable Vector Graphics
Specifications Specification Status Comment Scalable Vector Graphics (SVG) 2The definition of 'tabindex' in that specification. Candidate Recommendation Initial definition ...
tableValues - SVG: Scalable Vector Graphics
Each number can be between 0 and 1. An empty list results in an identity transfer function. Specifications Specification Status Comment Filter Effects Module Level 1The definition of 'tableValu...
target - SVG: Scalable Vector Graphics
Note: This value was never well implemented, and the distinction between _replace and _self has been made redundant by changes in the HTML definition of browsing contexts. Use _self to replace the current SVG document. _self The c...
targetX - SVG: Scalable Vector Graphics
ute determines the positioning in horizontal direction of the convolution matrix relative to a given target pixel in the input image. The leftmost column of the matrix is column number zero. The value must be such that: 0 <= targetX < orderX. Only one element is using this attribute: <feConvolveMatrix> Usage notes Value <integer> Default value floor(orderX / 2)
Animatable Yes <integer> This value indicates the positioning in horizontal direction of the convolution matrix relative to a given target pixel in the input image. Specifications Specification Status Comment Filter Effects Module Level 1The definition of 'targetX' in that specification. Working Draft No change Scalable Vector Graphics (SVG) 1.1 (Se...
targetY - SVG: Scalable Vector Graphics
tY attribute determines the positioning in vertical direction of the convolution matrix relative to a given target pixel in the input image. The topmost row of the matrix is row number zero. The value must be such that: 0 <= targetY < orderY. Only one element is using this attribute: <feConvolveMatrix> Usage notes Value <integer> Default value floor(orderY / 2)
Animatable Yes <integer> This value indicates the positioning in vertical direction of the convolution matrix relative to a given target pixel in the input image. Specifications Specification Status Comment Filter Effects Module Level 1The definition of 'targetY' in that specification. Working Draft No change Scalable Vector Graphics (SVG) 1.1 (Seco...
text-anchor - SVG: Scalable Vector Graphics
For an element with a direction property value of ltr (typical for most European languages), the left side of the text is rendered at the initial text position. For an element with a direction property value of rtl (typical for Arabic and Hebrew), the right si...
text-decoration - SVG: Scalable Vector Graphics
Specifications Specification Status Comment CSS Text Decoration Module Level 3The definition of 'text-decoration' in that specification. Candidate Recommendation Defines the property as a shorthand for text-decoration-line, text-decoration-style, and text-decoration...
textLength - SVG: Scalable Vector Graphics
<number> A numeric value outlines a length referring to the units of the current coordinate system. Example Let's create a simple example that presents text you can resize using an <input> element of type "range". CSS .controls { font: 16...
transform-origin - SVG: Scalable Vector Graphics
d as CSS property to style SVG. See the CSS transform-origin property for more information. Usage notes Values [ <length-percentage> | left | center | right | top | bottom ] | [ [ <length-percentage> | left | center | right ] && [ <length-percentage> | top | center | bottom ] ] <length>?where <length-percentage> = <length> | <percentage> Default value 50%, 50%
Animatable Yes The transform-origin property may be specified using one, two, or three values, where each value represents an offset. Offsets that are not explicitly defined are reset to their corresponding initial values. If two or more values are defined and either no value is a keyword, or the only used keyword is center, then the first value represents the horizontal offset and the second rep...
transform - SVG: Scalable Vector Graphics
nObject>, <g>, <image>, <line>, <path>, <polygon>, <polyline>, <rect>, <switch>, <text>, and <use>). Also, as a legacy from SVG 1.1, <linearGradient> and <radialGradient> support the gradientTransform attribute, and <pattern> supports the patternTransform attribute, both of which act exactly like the transform attribute. Value <transform-list> Default value none
Animatable Yes Transform functions The following transform functions can be used by the transform attribute <transform-list> Warning: As per the spec, you should be able to also use CSS transform functions. However, the compatibility isn't guaranteed. Matrix The matrix(<a> <b> <c> <d> <e> <f>) transform function specifies a transformation in the form of a transformation matrix of six values. m...
u1 - SVG: Scalable Vector Graphics
kern a comma, specify the comma as part of a range of Unicode characters or as a glyph name using the g1 attribute. The total set of possible first glyphs in the kerning pair is the union of glyphs specified by the u1 and g1 attributes. Two elements are using this attribute: <hkern> and <vkern> Context notes Value [ <character> | <urange> ]# Default value None
Animatable No [ <character> | <urange> ]# This value indicates a comma-separated sequence of Unicode characters and/or ranges of Unicode characters, which identify a set of possible first glyphs in a kerning pair. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'u1' in that specification. Reco...
u2 - SVG: Scalable Vector Graphics
kern a comma, specify the comma as part of a range of Unicode characters or as a glyph name using the g2 attribute. The total set of possible second glyphs in the kerning pair is the union of glyphs specified by the u2 and g2 attributes. Two elements are using this attribute: <hkern> and <vkern> Context notes Value [ <character> | <urange> ]# Default value None
Animatable No [ <character> | <urange> ]# This value indicates a comma-separated sequence of Unicode characters and/or ranges of Unicode characters, which identify a set of possible second glyphs in a kerning pair. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'u2' in that specification. Rec...
unicode-bidi - SVG: Scalable Vector Graphics
used as a CSS property. See the CSS unicode-bidi property for more information. As a presentation attribute, it can be applied to any element but it has effect only on the following eleven elements: <altGlyph>, <textPath>, <text>, <tref>, and <tspan> Context notes Value normal | embed | isolate | bidi-override | isolate-override | plaintext Default value normal
Animatable No For a description of the values, please refer to the CSS unicode-bidi property. Specifications Specification Status Comment CSS Writing Modes Module Level 3The definition of 'unicode-bidi' in that specification. Proposed Recommendation SVG 2 only refers to CSS Writing Modes. Introduced isolate, isolate-override, and plaintext keywords. ...
unicode-range - SVG: Scalable Vector Graphics
The unicode-range attribute defines the range of ISO 10646 characters possibly covered by the glyphs in a font. Only one element is using this attribute: <font-face> Usage notes Value <urange># Default value None
Animatable No <urange># This value is a comma-separated list of ISO 10646 characters possibly covered by the glyphs in the font. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'unicode-range' in that specification. Recommendation Initial definition ...
unicode - SVG: Scalable Vector Graphics
"ffl". The unicode attribute contributes to the process for deciding which glyph(s) are used to represent which character(s). If the attribute is not provided for a given <glyph>, then the only way to use this glyph is via an <altGlyph> reference. Only one element is using this attribute: <glyph> Context notes Value <string> Default value None
Animatable No <string> This value specifies one or more Unicode characters corresponding to a glyph. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'unicode' in that specification. Recommendation Initial definition ...
units-per-em - SVG: Scalable Vector Graphics
height is the intended distance between lines of type in the same type size. This is the size of the design grid on which glyphs are laid out. Note: This value is almost always necessary as nearly every other attribute requires the definition of a design grid. Only one element is using this attribute: <font-face> Usage notes Value <number> Default value 1000
Animatable No <number> This value indicates the the number of coordinate units on the em square. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'units-per-em' in that specification. Recommendation Initial definition ...
v-alphabetic - SVG: Scalable Vector Graphics
The v-alphabetic attribute defines indicates the alignment coordinate for glyphs to achieve alphabetic baseline alignment. The value is an offset in the font coordinate system relative to the glyph-specific vert-origin-x attribute. Only one element is using this attribute: <font-face> Usage notes Value <number> Default value None
Animatable No Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'v-alphabetic' in that specification. Recommendation Initial definition ...
v-hanging - SVG: Scalable Vector Graphics
The v-hanging attribute indicates the alignment coordinate for glyphs to achieve hanging baseline alignment. The value is an offset in the font coordinate system relative to the glyph-specific vert-origin-x attribute. Only one element is using this attribute: <font-face> Usage notes Value <number> Default value None
Animatable No <number> This value indicates the alignment coordinate for the glyphs to achieve hanging baseline alignment. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'v-hanging' in that specification. Recommendation Initial definition ...
v-ideographic - SVG: Scalable Vector Graphics
The v-ideographic attribute indicates the alignment coordinate for glyphs to achieve ideographic baseline alignment for vertically oriented glyph layouts. The value is an offset in the font coordinate system relative to the glyph-specific vert-origin-x attribute. Only one element is using this attribute: <font-face> Usage notes Value <number> Default value None
Animatable No <number> This value indicates the alignment coordinate for the glyphs. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'v-ideographic' in that specification. Recommendation Initial definition ...
v-mathematical - SVG: Scalable Vector Graphics
e v-mathematical attribute indicates the alignment coordinate for glyphs to achieve mathematical baseline alignment for vertically oriented glyph layouts. The value is an offset in the font coordinate system relative to the glyph-specific vert-origin-x attribute. Only one element is using this attribute: <font-face> Usage notes Value <number> Default value None
Animatable No <number> This value indicates the alignment coordinate for the glyphs. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'v-mathematical' in that specification. Recommendation Initial definition ...
vector-effect - SVG: Scalable Vector Graphics
. As a presentation attribute, it can be applied to any element but it has effect only on the following ten elements: <circle>, <ellipse>, <foreignObject>, <image>, <line>, <path>, <polygon>, <polyline>, <rect>, <text>, <textPath> <tspan>, and <use> Usage notes Value none | non-scaling-stroke | non-scaling-size | non-rotation | fixed-position Default value none
Animatable Yes none This value specifies that no vector effect shall be applied, i.e. the default rendering behaviour is used which is to first fill the geometry of a shape with a specified paint, then stroke the outline with a specified paint. non-scaling-stroke This value modifies the way an object is stroked. Normally stroking involves calculating stroke outline of the shape's path in curr...
version - SVG: Scalable Vector Graphics
t <svg> element. It is purely advisory and has no influence on rendering or processing. While it is specified to accept any number, the only two valid choices are currently 1.0 and 1.1. <svg version="1.1" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <rect x="10" y="10" width="80" height="80"/> </svg> Usage notes Value <number> Default value None
Animatable No Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'version' in that specification. Recommendation Initial definition ...
vert-origin-x - SVG: Scalable Vector Graphics
The vert-origin-x attribute indicates the x-coordinate in the font coordinate system of the origin of a glyph to be used when drawing vertically oriented text. Only one element is using this attribute: <font> Usage notes Value <number> Default value Half of horiz-adv-x value
Animatable No <number> This value indicates the x-coordinate of the origin of a glyph for vertically oriented text. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'vert-origin-x' in that specification. Recommendation Initial definition ...
vert-origin-y - SVG: Scalable Vector Graphics
The vert-origin-y attribute indicates the y-coordinate in the font coordinate system of the origin of a glyph to be used when drawing vertically oriented text. Only one element is using this attribute: <font> Usage notes Value <number> Default value ascent value
Animatable No <number> This value indicates the y-coordinate of the origin of a glyph for vertically oriented text. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'vert-origin-y' in that specification. Recommendation Initial definition ...
viewTarget - SVG: Scalable Vector Graphics
The viewTarget attribute indicates the target object associated with the view. Only one element is using this attribute: <view> Usage notes Value <xml-name> Default value None
Animatable No <xml-name> This value specifies the name of the object associated with the view. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'viewTarget' in that specification. Recommendation Initial definition ...
visibility - SVG: Scalable Vector Graphics
hidden This value indicates that the element will not be painted. Though it is still part of the rendering tree, i.e. it may receive pointer events depending on the pointer-events attribute, may receive focus depending on the tabindex attribute, contributes to bounding box calculations and clipping paths, and does a...
word-spacing - SVG: Scalable Vector Graphics
Prior to Firefox 72 Firefox ignored word-spacing and renders text without. Specifications Specification Status Comment CSS Text Module Level 3The definition of 'word-spacing' in that specification. Working Draft SVG 2 just refers...
writing-mode - SVG: Scalable Vector Graphics
ibute, writing-mode can be used as a CSS property. See the css writing-mode property for more information. As a presentation attribute, it can be applied to any element but it has effect only on the following five elements: <altGlyph>, <text>, <textPath>, <tref>, and <tspan> Usage notes Default value horizontal-tb Value horizontal-tb | vertical-rl | vertical-lr
Animatable Yes horizontal-tb This value defines a top-to-bottom block flow direction. Both the writing mode and the typographic mode are horizontal. vertical-rl This value defines a right-to-left block flow direction. Both the writing mode and the typographic mode are vertical. vertical-lr This value defines a left-to-right block flow direction. Both the writing mode and the typographic mod...
x-height - SVG: Scalable Vector Graphics
The x-height attribute indicates the height of lowercase glyphs in the font within the font coordinate system. Only one element is using this attribute: <font-face> Usage notes Value <number> Default value None
Animatable No <number> This value indicates the height of lowercase glyphs. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'x-height' in that specification. Recommendation Initial definition ...
xChannelSelector - SVG: Scalable Vector Graphics
G This keyword specifies that the green color channel of the input image defined in in2 will be used to displace the pixels of the input image defined in in along the x-axis. B This keyword specifies that ...
xlink:arcrole - SVG: Scalable Vector Graphics
Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'xlink:arcrole' in that specification. Recommendation Initial definition ...
xlink:show - SVG: Scalable Vector Graphics
The xlink:show attribute indicates how a linked resource should be opened and is meant for XLink-aware processors. In case of a conflict, the target attribute has priority, since it can express a wider range of values. Only one element is using this attribute: <a> Usage notes Value new | replace | embed | other | none Default value replace
Animatable No new This value specifies that the referenced resource is opened in a new window or tab. This is similar to the effect achieved by an HTML <a> element with target set to _blank. replace This value specifies that the referenced resource is opened in the same window or tab. This is similar to the effect achieved by an HTML <a> element with target set to _self. embed This value specifies that instead...
xlink:title - SVG: Scalable Vector Graphics
. These elements are using this attribute: <a>, <altGlyph>, <animate>, <animateColor>, <animateMotion>, <animateTransform>, <color-profile>, <cursor>, <feImage>, <filter>, <font-face-uri>, <glyphRef>, <image>, <linearGradient>, <mpath>, <pattern>, <radialGradient>, <script>, <set>, <textPath>, <tref>, and <use> Usage context Value <anything> Default value None
Animatable No <anything> This value specifies the title used to describe the meaning of the link or resource. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 2The definition of 'seed' in that specification. Candidate Recommendation Deprecated the attribute and made it only apply to <a>, <image>, <linearGradient>, <pattern>, <radial...
xlink:type - SVG: Scalable Vector Graphics
e. Twentytwo elements are using this attribute: <a>, <altGlyph>, <animate>, <animateColor>, <animateMotion>, <animateTransform>, <color-profile>, <cursor>, <feImage>, <filter>, <font-face-uri>, <glyphRef>, <image>, <linearGradient>, <mpath>, <pattern>, <radialGradient>, <script>, <set>, <textPath>, <tref>, and <use> Usage notes Value simple Default value simple
Animatable No simple This value specifies that the referred resource is a simple link. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'xlink:type' in that specification. Recommendation Initial definition ...
xml:base - SVG: Scalable Vector Graphics
The xml:base attribute specifies a base IRI other than the base IRI of the document or external entity. All elements are using this attribute. Usage notes Value <iri> Default value None
Animatable No <iri> This value specifies the base IRI of the element. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'xml:base' in that specification. Recommendation Initial definition ...
xml:lang - SVG: Scalable Vector Graphics
ere is also a lang attribute (without namespace). If both of them are defined, the one with namespace is used and the one without is ignored. All elements are using this attribute. <svg viewBox="0 0 200 100" xmlns="http://www.w3.org/2000/svg"> <text xml:lang="en-US">This is some English text</text> </svg> Usage notes Value <language-tag> Default value None
Animatable No <language-tag> This value specifies the language used for the element. The syntax of this value is defined in the BCP 47 specification. The most common syntax is a value formed by a lowercase two-character part for the language and an uppercase two-character part for the region or country, separated by a minus sign, e.g. en-US for US English or de-AT for Austrian German. S...
xml:space - SVG: Scalable Vector Graphics
e DOM API may have no effect. All elements are using this attribute. html, body, svg { height: 100%; } <svg viewBox="0 0 140 50" xmlns="http://www.w3.org/2000/svg"> <text y="20" xml:space="default">Default spacing</text> <text y="40" xml:space="preserve">Preserved spacing</text> </svg> Usage notes Value default | preserve Default value default
Animatable No default With this value set, whitespace characters will be processed in this order: All newline characters are removed. All tab characters are converted into space characters. All leading and trailing space characters are removed. All contiguous space characters are collapsed into a single space character. preserve This value tells the user agent to convert all...
yChannelSelector - SVG: Scalable Vector Graphics
G This keyword specifies that the green color channel of the input image defined in in2 will be used to displace the pixels of the input image defined in in along the y-axis. B This keyword specifies that ...
<clipPath> - SVG: Scalable Vector Graphics
By default, pointer-events are not dispatched on clipped regions. For example, a circle with a radius of 10 which is clipped to a circle with a radius of 5 will not receive "click" events outside the smaller radius. Attributes clipPathUnits Defines the coordinate system for the contents of the <clipPath> element. ...
<polyline> - SVG: Scalable Vector Graphics
--> <polyline points="0,100 50,25 50,75 100,0" /> <!-- Example of the same polyline shape with stroke and no fill --> <polyline points="100,100 150,25 150,75 200,0" fill="none" stroke="black" /> </svg> Attributes points This attribute defines the list of points (pairs of x,y absolute coordinates) required to draw the polyline Value type: <number>+ ; Default value: "";
Animatable: yes pathLength This attribute lets specify the total length for the path, in user units. Value type: <number> ; Default value: none;
Animatable: yes Global attributes Core Attributes Most notably: id, tabindex Styling Attributes class, style Conditional Processing Attributes Most notably: requiredExtensions, systemLanguage Event Attributes Global event attributes, Graphical event ...
<set> - SVG: Scalable Vector Graphics
x: 5px; fill: green; } </style> <rect id="me" width="10" height="10"> <set attributeName="class" to="round" begin="me.click" dur="2s" /> </rect> </svg> Attributes to This attribute defines the value to be applied to the target attribute for the duration of the animation. The value must match the requirements of the target attribute. ...
SVG 2 support in Mozilla - SVG: Scalable Vector Graphics
ath> graphics elements Implementation status unknown Allow x, y, width, and height on <symbol> Implementation status unknown Made <use> element shadow trees consistent with Shadow DOM spec Implementation status unknown Role mapping of <a> element depending on whether it is a valid link Implementation status unknown ARIA state and property attributes
animatable Implementation status unknown Styling Change Notes contentStyleType attribute removed Implementation status unknown LinkStyle on SVGStyleElement Implemented (bug 1239128 (Firefox 46.0 / Thunderbird 46.0 / SeaMonkey 2.43)) Inner <svg>s and <foreignObjects>s not overflow: hidden; in UA style sheet Implementation status unknown ...