The common data types for SVG's properties and attributes fall into the following categories:
ListOfXXX: XXX | XXX comma-wsp ListOfXXX comma-wsp: (wsp+ comma? wsp*) | (comma wsp*) comma: "," wsp: (#x20 | #x9 | #xD | #xA)where XXX represents a particular type of value.
The following is the list of recognized color keywords that can be used as a keyword value for data type <color>:
|
|
The following interfaces are defined below: SVGElement, SVGAnimatedBoolean, SVGAnimatedString, SVGStringList, SVGAnimatedEnumeration, SVGAnimatedInteger, SVGNumber, SVGAnimatedNumber, SVGNumberList, SVGAnimatedNumberList, SVGLength, SVGAnimatedLength, SVGLengthList, SVGAnimatedLengthList, SVGAngle, SVGAnimatedAngle, SVGColor, SVGICCColor, SVGRect, SVGAnimatedRect, SVGUnitTypes, SVGStylable, SVGLocatable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGFitToViewBox, SVGZoomAndPan, SVGViewSpec, SVGURIReference, SVGCSSRule, SVGRenderingIntent.
All of the SVG DOM interfaces that correspond directly to elements in the SVG language (e.g., the SVGPathElement interface corresponds directly to the 'path' element in the language) are derivative from base class SVGElement.
interface SVGElement : Element { attribute DOMString id; // raises DOMException on setting attribute DOMString xmlbase; // raises DOMException on setting readonly attribute SVGSVGElement ownerSVGElement; readonly attribute SVGElement viewportElement; };
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
|
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
|
interface SVGAnimatedBoolean { attribute boolean baseVal; // raises DOMException on setting readonly attribute boolean animVal; };
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
|
interface SVGAnimatedString { attribute DOMString baseVal; // raises DOMException on setting readonly attribute DOMString animVal; };
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
|
This interface defines a list of DOMString objects.
SVGStringList has the same attributes and methods as other SVGxxxList interfaces. Implementers may consider using a single base class to implement the various SVGxxxList interfaces.
interface SVGStringList { readonly attribute unsigned long numberOfItems; void clear ( ) raises( DOMException ); DOMString initialize ( in DOMString newItem ) raises( DOMException, SVGException ); DOMString getItem ( in unsigned long index ) raises( DOMException ); DOMString insertItemBefore ( in DOMString newItem, in unsigned long index ) raises( DOMException, SVGException ); DOMString replaceItem ( in DOMString newItem, in unsigned long index ) raises( DOMException, SVGException ); DOMString removeItem ( in unsigned long index ) raises( DOMException ); DOMString appendItem ( in DOMString newItem ) raises( DOMException, SVGException ); };
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
|
in DOMString newItem | The item which should become the only member of the list. |
DOMString | The item being inserted into the list. |
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
|
|
SVGException |
SVG_WRONG_TYPE_ERR: Raised if parameter newItem is the wrong type of object for the given list.
|
in unsigned long index | The index of the item from the list which is to be returned. The first item is number 0. |
DOMString | The selected item. |
DOMException |
INDEX_SIZE_ERR: Raised if the index number is negative or greater than or equal to numberOfItems.
|
in DOMString newItem | The item which is to be inserted into the list. | |
in unsigned long index |
The index of the item before which the new item is to be inserted. The first item is number 0. If the index is equal to 0, then the new item is inserted at the front of the list. If the index is greater than or equal to numberOfItems, then the new item is appended to the end of the list. |
DOMString | The inserted item. |
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
|
|
SVGException |
SVG_WRONG_TYPE_ERR: Raised if parameter newItem is the wrong type of object for the given list.
|
in DOMString newItem | The item which is to be inserted into the list. | |
in unsigned long index | The index of the item which is to be replaced. The first item is number 0. |
DOMString | The inserted item. |
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
INDEX_SIZE_ERR: Raised if the index number is negative or greater than or equal to numberOfItems.
|
|
SVGException |
SVG_WRONG_TYPE_ERR: Raised if parameter newItem is the wrong type of object for the given list.
|
in unsigned long index | The index of the item which is to be removed. The first item is number 0. |
DOMString | The removed item. |
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
INDEX_SIZE_ERR: Raised if the index number is negative or greater than or equal to numberOfItems.
|
in DOMString newItem | The item which is to be inserted into the list. The first item is number 0. |
DOMString | The inserted item. |
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
|
|
SVGException |
SVG_WRONG_TYPE_ERR: Raised if parameter newItem is the wrong type of object for the given list.
|
interface SVGAnimatedEnumeration { attribute unsigned short baseVal; // raises DOMException on setting readonly attribute unsigned short animVal; };
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
|
interface SVGAnimatedInteger { attribute long baseVal; // raises DOMException on setting readonly attribute long animVal; };
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
|
interface SVGNumber { attribute float value; // raises DOMException on setting };
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
|
interface SVGAnimatedNumber { attribute float baseVal; // raises DOMException on setting readonly attribute float animVal; };
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
|
This interface defines a list of SVGNumber objects.
SVGNumberList has the same attributes and methods as other SVGxxxList interfaces. Implementers may consider using a single base class to implement the various SVGxxxList interfaces.
interface SVGNumberList { readonly attribute unsigned long numberOfItems; void clear ( ) raises( DOMException ); SVGNumber initialize ( in SVGNumber newItem ) raises( DOMException, SVGException ); SVGNumber getItem ( in unsigned long index ) raises( DOMException ); SVGNumber insertItemBefore ( in SVGNumber newItem, in unsigned long index ) raises( DOMException, SVGException ); SVGNumber replaceItem ( in SVGNumber newItem, in unsigned long index ) raises( DOMException, SVGException ); SVGNumber removeItem ( in unsigned long index ) raises( DOMException ); SVGNumber appendItem ( in SVGNumber newItem ) raises( DOMException, SVGException ); };
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
|
in SVGNumber newItem | The item which should become the only member of the list. |
SVGNumber | The item being inserted into the list. |
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
|
|
SVGException |
SVG_WRONG_TYPE_ERR: Raised if parameter newItem is the wrong type of object for the given list.
|
in unsigned long index | The index of the item from the list which is to be returned. The first item is number 0. |
SVGNumber | The selected item. |
DOMException |
INDEX_SIZE_ERR: Raised if the index number is negative or greater than or equal to numberOfItems.
|
in SVGNumber newItem | The item which is to be inserted into the list. | |
in unsigned long index |
The index of the item before which the new item is to be inserted. The first item is number 0. If the index is equal to 0, then the new item is inserted at the front of the list. If the index is greater than or equal to numberOfItems, then the new item is appended to the end of the list. |
SVGNumber | The inserted item. |
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
|
|
SVGException |
SVG_WRONG_TYPE_ERR: Raised if parameter newItem is the wrong type of object for the given list.
|
in SVGNumber newItem | The item which is to be inserted into the list. | |
in unsigned long index | The index of the item which is to be replaced. The first item is number 0. |
SVGNumber | The inserted item. |
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
INDEX_SIZE_ERR: Raised if the index number is negative or greater than or equal to numberOfItems.
|
|
SVGException |
SVG_WRONG_TYPE_ERR: Raised if parameter newItem is the wrong type of object for the given list.
|
in unsigned long index | The index of the item which is to be removed. The first item is number 0. |
SVGNumber | The removed item. |
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
INDEX_SIZE_ERR: Raised if the index number is negative or greater than or equal to numberOfItems.
|
in SVGNumber newItem | The item which is to be inserted into the list. The first item is number 0. |
SVGNumber | The inserted item. |
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
|
|
SVGException |
SVG_WRONG_TYPE_ERR: Raised if parameter newItem is the wrong type of object for the given list.
|
interface SVGAnimatedNumberList { readonly attribute SVGNumberList baseVal; readonly attribute SVGNumberList animVal; };
The SVGLength interface corresponds to the <length> basic data type.
interface SVGLength { // Length Unit Types const unsigned short SVG_LENGTHTYPE_UNKNOWN = 0; const unsigned short SVG_LENGTHTYPE_NUMBER = 1; const unsigned short SVG_LENGTHTYPE_PERCENTAGE = 2; const unsigned short SVG_LENGTHTYPE_EMS = 3; const unsigned short SVG_LENGTHTYPE_EXS = 4; const unsigned short SVG_LENGTHTYPE_PX = 5; const unsigned short SVG_LENGTHTYPE_CM = 6; const unsigned short SVG_LENGTHTYPE_MM = 7; const unsigned short SVG_LENGTHTYPE_IN = 8; const unsigned short SVG_LENGTHTYPE_PT = 9; const unsigned short SVG_LENGTHTYPE_PC = 10; readonly attribute unsigned short unitType; attribute float value; // raises DOMException on setting attribute float valueInSpecifiedUnits; // raises DOMException on setting attribute DOMString valueAsString; // raises DOMException on setting void newValueSpecifiedUnits ( in unsigned short unitType, in float valueInSpecifiedUnits ); void convertToSpecifiedUnits ( in unsigned short unitType ); };
SVG_LENGTHTYPE_UNKNOWN | The unit type is not one of predefined unit types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type. | |
SVG_LENGTHTYPE_NUMBER | No unit type was provided (i.e., a unitless value was specified), which indicates a value in user units. | |
SVG_LENGTHTYPE_PERCENTAGE | A percentage value was specified. | |
SVG_LENGTHTYPE_EMS | A value was specified using the "em" units defined in CSS2. | |
SVG_LENGTHTYPE_EXS | A value was specified using the "ex" units defined in CSS2. | |
SVG_LENGTHTYPE_PX | A value was specified using the "px" units defined in CSS2. | |
SVG_LENGTHTYPE_CM | A value was specified using the "cm" units defined in CSS2. | |
SVG_LENGTHTYPE_MM | A value was specified using the "mm" units defined in CSS2. | |
SVG_LENGTHTYPE_IN | A value was specified using the "in" units defined in CSS2. | |
SVG_LENGTHTYPE_PT | A value was specified using the "pt" units defined in CSS2. | |
SVG_LENGTHTYPE_PC | A value was specified using the "pc" units defined in CSS2. |
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
|
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
|
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
|
in unsigned short unitType | The unitType for the value (e.g., SVG_LENGTHTYPE_MM). | |
in float valueInSpecifiedUnits | The new value. |
in unsigned short unitType | The unitType to switch to (e.g., SVG_LENGTHTYPE_MM). |
interface SVGAnimatedLength { readonly attribute SVGLength baseVal; readonly attribute SVGLength animVal; };
This interface defines a list of SVGLength objects.
SVGLengthList has the same attributes and methods as other SVGxxxList interfaces. Implementers may consider using a single base class to implement the various SVGxxxList interfaces.
interface SVGLengthList { readonly attribute unsigned long numberOfItems; void clear ( ) raises( DOMException ); SVGLength initialize ( in SVGLength newItem ) raises( DOMException, SVGException ); SVGLength getItem ( in unsigned long index ) raises( DOMException ); SVGLength insertItemBefore ( in SVGLength newItem, in unsigned long index ) raises( DOMException, SVGException ); SVGLength replaceItem ( in SVGLength newItem, in unsigned long index ) raises( DOMException, SVGException ); SVGLength removeItem ( in unsigned long index ) raises( DOMException ); SVGLength appendItem ( in SVGLength newItem ) raises( DOMException, SVGException ); };
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
|
in SVGLength newItem | The item which should become the only member of the list. |
SVGLength | The item being inserted into the list. |
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
|
|
SVGException |
SVG_WRONG_TYPE_ERR: Raised if parameter newItem is the wrong type of object for the given list.
|
in unsigned long index | The index of the item from the list which is to be returned. The first item is number 0. |
SVGLength | The selected item. |
DOMException |
INDEX_SIZE_ERR: Raised if the index number is negative or greater than or equal to numberOfItems.
|
in SVGLength newItem | The item which is to be inserted into the list. | |
in unsigned long index |
The index of the item before which the new item is to be inserted. The first item is number 0. If the index is equal to 0, then the new item is inserted at the front of the list. If the index is greater than or equal to numberOfItems, then the new item is appended to the end of the list. |
SVGLength | The inserted item. |
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
|
|
SVGException |
SVG_WRONG_TYPE_ERR: Raised if parameter newItem is the wrong type of object for the given list.
|
in SVGLength newItem | The item which is to be inserted into the list. | |
in unsigned long index | The index of the item which is to be replaced. The first item is number 0. |
SVGLength | The inserted item. |
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
INDEX_SIZE_ERR: Raised if the index number is negative or greater than or equal to numberOfItems.
|
|
SVGException |
SVG_WRONG_TYPE_ERR: Raised if parameter newItem is the wrong type of object for the given list.
|
in unsigned long index | The index of the item which is to be removed. The first item is number 0. |
SVGLength | The removed item. |
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
INDEX_SIZE_ERR: Raised if the index number is negative or greater than or equal to numberOfItems.
|
in SVGLength newItem | The item which is to be inserted into the list. The first item is number 0. |
SVGLength | The inserted item. |
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
|
|
SVGException |
SVG_WRONG_TYPE_ERR: Raised if parameter newItem is the wrong type of object for the given list.
|
interface SVGAnimatedLengthList { readonly attribute SVGLengthList baseVal; readonly attribute SVGLengthList animVal; };
The SVGAngle interface corresponds to the <angle> basic data type.
interface SVGAngle { // Angle Unit Types const unsigned short SVG_ANGLETYPE_UNKNOWN = 0; const unsigned short SVG_ANGLETYPE_UNSPECIFIED = 1; const unsigned short SVG_ANGLETYPE_DEG = 2; const unsigned short SVG_ANGLETYPE_RAD = 3; const unsigned short SVG_ANGLETYPE_GRAD = 4; readonly attribute unsigned short unitType; attribute float value; // raises DOMException on setting attribute float valueInSpecifiedUnits; // raises DOMException on setting attribute DOMString valueAsString; // raises DOMException on setting void newValueSpecifiedUnits ( in unsigned short unitType, in float valueInSpecifiedUnits ); void convertToSpecifiedUnits ( in unsigned short unitType ); };
SVG_ANGLETYPE_UNKNOWN | The unit type is not one of predefined unit types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type. | |
SVG_ANGLETYPE_UNSPECIFIED | No unit type was provided (i.e., a unitless value was specified). For angles, a unitless value is treated the same as if degrees were specified. | |
SVG_ANGLETYPE_DEG | The unit type was explicitly set to degrees. | |
SVG_ANGLETYPE_RAD | The unit type is radians. | |
SVG_ANGLETYPE_GRAD | The unit type is grads. |
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
|
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
|
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
|
in unsigned short unitType | The unitType for the angle value (e.g., SVG_ANGLETYPE_DEG). | |
in float valueInSpecifiedUnits | The angle value. |
in unsigned short unitType | The unitType to switch to (e.g., SVG_ANGLETYPE_DEG). |
interface SVGAnimatedAngle { readonly attribute SVGAngle baseVal; readonly attribute SVGAngle animVal; };
The SVGColor interface corresponds to color value definition for properties 'stop-color', 'flood-color' and 'lighting-color' and is a base class for interface SVGPaint. It incorporates SVG's extended notion of color, which incorporates ICC-based color specifications.
Interface SVGColor does not correspond to the <color> basic data type. For the <color> basic data type, the applicable DOM interfaces are defined in [DOM2-CSS]; in particular, see the [DOM2-CSS-RGBCOLOR].
interface SVGColor : css::CSSValue { // Color Types const unsigned short SVG_COLORTYPE_UNKNOWN = 0; const unsigned short SVG_COLORTYPE_RGBCOLOR = 1; const unsigned short SVG_COLORTYPE_RGBCOLOR_ICCCOLOR = 2; const unsigned short SVG_COLORTYPE_CURRENTCOLOR = 3; readonly attribute unsigned short colorType; readonly attribute css::RGBColor rgbColor; readonly attribute SVGICCColor iccColor; void setRGBColor ( in DOMString rgbColor ) raises( SVGException ); void setRGBColorICCColor ( in DOMString rgbColor, in DOMString iccColor ) raises( SVGException ); void setColor ( in unsigned short colorType, in DOMString rgbColor, in DOMString iccColor ) raises( SVGException ); };
SVG_COLORTYPE_UNKNOWN | The color type is not one of predefined types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type. | |
SVG_COLORTYPE_RGBCOLOR | An sRGB color has been specified without an alternative ICC color specification. | |
SVG_COLORTYPE_RGBCOLOR_ICCCOLOR | An sRGB color has been specified along with an alternative ICC color specification. | |
SVG_COLORTYPE_CURRENTCOLOR | Corresponds to when keyword 'currentColor' has been specified. |
in DOMString rgbColor | The new color value. |
SVGException |
SVG_INVALID_VALUE_ERR: Raised if one of the parameters has an invalid value.
|
in DOMString rgbColor | The new color value. | |
in DOMString iccColor | The alternate ICC color specification. |
SVGException |
SVG_INVALID_VALUE_ERR: Raised if one of the parameters has an invalid value.
|
colorType
requires an RGBColor, then rgbColor
must be a valid RGBColor object;
otherwise, rgbColor
must be null.
If colorType
requires an SVGICCColor, then iccColor
must be a valid SVGICCColor object;
otherwise, iccColor
must be null.
in unsigned short colorType | One of the defined constants for colorType. | |
in DOMString rgbColor | The specification of an sRGB color, or null. | |
in DOMString iccColor | The specification of an ICC color, or null. |
SVGException |
SVG_INVALID_VALUE_ERR: Raised if one of the parameters has an invalid value.
|
The SVGICCColor interface expresses an ICC-based color specification.
interface SVGICCColor { attribute DOMString colorProfile; // raises DOMException on setting readonly attribute SVGNumberList colors; };
The name of the color profile, which is the first parameter of an ICC color specification.
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
|
The list of color values that define this ICC color. Each color value is an arbitrary floating point number.
Rectangles are defined as consisting of a (x,y) coordinate pair identifying a minimum X value, a minimum Y value, and a width and height, which are usually constrained to be non-negative.
interface SVGRect { attribute float x; // raises DOMException on setting attribute float y; // raises DOMException on setting attribute float width; // raises DOMException on setting attribute float height; // raises DOMException on setting };
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
|
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
|
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
|
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
|
interface SVGAnimatedRect { readonly attribute SVGRect baseVal; readonly attribute SVGRect animVal; };
The SVGUnitTypes interface defines a commonly used set of constants and is a base interface used by SVGGradientElement, SVGPatternElement, SVGClipPathElement, SVGMaskElement, and SVGFilterElement.
interface SVGUnitTypes { // Unit Types const unsigned short SVG_UNIT_TYPE_UNKNOWN = 0; const unsigned short SVG_UNIT_TYPE_USERSPACEONUSE = 1; const unsigned short SVG_UNIT_TYPE_OBJECTBOUNDINGBOX = 2; };
SVG_UNIT_TYPE_UNKNOWN | The type is not one of predefined types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type. | |
SVG_UNIT_TYPE_USERSPACEONUSE | Corresponds to value userSpaceOnUse. | |
SVG_UNIT_TYPE_OBJECTBOUNDINGBOX | Corresponds to value objectBoundingBox. |
interface SVGStylable { readonly attribute SVGAnimatedString className; readonly attribute css::CSSStyleDeclaration style; css::CSSValue getPresentationAttribute ( in DOMString name ); };
in DOMString name | Retrieves a "presentation attribute" by name. |
css::CSSValue |
The static/base value of the given presentation attribute as a CSSValue, or NULL if the given attribute does not have a specified value. |
Interface SVGLocatable is for all elements which either have a transform attribute or don't have a transform attribute but whose content can have a bounding box in current user space.
interface SVGLocatable { readonly attribute SVGElement nearestViewportElement; readonly attribute SVGElement farthestViewportElement; SVGRect getBBox ( ); SVGMatrix getCTM ( ); SVGMatrix getScreenCTM ( ); SVGMatrix getTransformToElement ( in SVGElement element ) raises( SVGException ); };
SVGRect | An SVGRect object that defines the bounding box. |
SVGMatrix | An SVGMatrix object that defines the CTM. |
SVGMatrix | An SVGMatrix object that defines the given transformation matrix. |
element
(after application of its transform attribute, if any).
in SVGElement element | The target element. |
SVGMatrix | An SVGMatrix object that defines the transformation. |
SVGException |
SVG_MATRIX_NOT_INVERTABLE: Raised if the currently defined transformation matrices make it impossible
to compute the given matrix (e.g., because one of the transformations is singular).
|
Interface SVGTransformable contains properties and methods that apply to all elements which have attribute transform.
interface SVGTransformable : SVGLocatable { readonly attribute SVGAnimatedTransformList transform; };
Interface SVGTests defines an interface which applies to all elements which have attributes requiredFeatures, requiredExtensions and systemLanguage.
interface SVGTests { readonly attribute SVGStringList requiredFeatures; readonly attribute SVGStringList requiredExtensions; readonly attribute SVGStringList systemLanguage; boolean hasExtension ( in DOMString extension ); };
in DOMString extension | The name of the extension, expressed as a URI. |
boolean | True or false, depending on whether the given extension is supported. |
Interface SVGLangSpace defines an interface which applies to all elements which have attributes xml:lang and xml:space.
interface SVGLangSpace { attribute DOMString xmllang; // raises DOMException on setting attribute DOMString xmlspace; // raises DOMException on setting };
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
|
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
|
Interface SVGExternalResourcesRequired defines an interface which applies to all elements where this element or one of its descendants can reference an external resource.
interface SVGExternalResourcesRequired { readonly attribute SVGAnimatedBoolean externalResourcesRequired; };
Interface SVGFitToViewBox defines DOM attributes that apply to elements which have XML attributes viewBox and preserveAspectRatio.
interface SVGFitToViewBox { readonly attribute SVGAnimatedRect viewBox; readonly attribute SVGAnimatedPreserveAspectRatio preserveAspectRatio; };
interface SVGZoomAndPan { // Zoom and Pan Types const unsigned short SVG_ZOOMANDPAN_UNKNOWN = 0; const unsigned short SVG_ZOOMANDPAN_DISABLE = 1; const unsigned short SVG_ZOOMANDPAN_MAGNIFY = 2; attribute unsigned short zoomAndPan; // raises DOMException on setting };
SVG_ZOOMANDPAN_UNKNOWN | The enumeration was set to a value that is not one of predefined types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type. | |
SVG_ZOOMANDPAN_DISABLE | Corresponds to value disable. | |
SVG_ZOOMANDPAN_MAGNIFY | Corresponds to value magnify. |
DOMException |
NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
|
The interface corresponds to an SVG View Specification.
interface SVGViewSpec : SVGZoomAndPan, SVGFitToViewBox { readonly attribute SVGTransformList transform; readonly attribute SVGElement viewTarget; readonly attribute DOMString viewBoxString; readonly attribute DOMString preserveAspectRatioString; readonly attribute DOMString transformString; readonly attribute DOMString viewTargetString; };
Interface SVGURIReference defines an interface which applies to all elements which have the collection of XLink attributes, such as xlink:href, which define a URI reference.
interface SVGURIReference { readonly attribute SVGAnimatedString href; };
SVG extends interface CSSRule with interface SVGCSSRule by adding an SVGColorProfileRule rule to allow for specification of ICC-based color.
It is likely that this extension will become part of a future version of CSS and DOM.
interface SVGCSSRule : css::CSSRule { // Additional CSS RuleType to support ICC color specifications const unsigned short COLOR_PROFILE_RULE = 7; };
COLOR_PROFILE_RULE | The rule is an @color-profile. |
The SVGRenderingIntent interface defines the enumerated list of possible values for 'rendering-intent' attributes or descriptors.
interface SVGRenderingIntent { // Rendering Intent Types const unsigned short RENDERING_INTENT_UNKNOWN = 0; const unsigned short RENDERING_INTENT_AUTO = 1; const unsigned short RENDERING_INTENT_PERCEPTUAL = 2; const unsigned short RENDERING_INTENT_RELATIVE_COLORIMETRIC = 3; const unsigned short RENDERING_INTENT_SATURATION = 4; const unsigned short RENDERING_INTENT_ABSOLUTE_COLORIMETRIC = 5; };
RENDERING_INTENT_UNKNOWN | The type is not one of predefined types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type. | |
RENDERING_INTENT_AUTO | Corresponds to a value of auto. | |
RENDERING_INTENT_PERCEPTUAL | Corresponds to a value of perceptual. | |
RENDERING_INTENT_RELATIVE_COLORIMETRIC | Corresponds to a value of relative-colorimetric. | |
RENDERING_INTENT_SATURATION | Corresponds to a value of saturation. | |
RENDERING_INTENT_ABSOLUTE_COLORIMETRIC | Corresponds to a value of absolute-colorimetric. |