firstDaisy Diff compare report.
Click on the changed parts for a detailed description. Use the left and right arrow keys to walk through the modifications.
last 
SVG 1.1 (Second Edition) – 16 May 2009

14 January 2003

4 Basic Data Types and Interfaces


Contents


4.

3.

1

Interface SVGElement
  • 4.3.2 Interface SVGAnimatedBoolean
  • 4.3.3 Interface SVGAnimatedString
  • 4.3.4 Interface SVGStringList
  • 4.3.5 Interface SVGAnimatedEnumeration
  • 4.3.6 Interface SVGAnimatedInteger
  • 4.3.7 Interface SVGNumber
  • 4.3.8 Interface SVGAnimatedNumber
  • 4.3.9 Interface SVGNumberList
  • 4.3.10 Interface SVGAnimatedNumberList
  • 4.3.11 Interface SVGLength
  • 4.3.12 Interface SVGAnimatedLength
  • 4.3.13 Interface SVGLengthList
  • 4.3.14 Interface SVGAnimatedLengthList
  • 4.3.15 Interface SVGAngle
  • 4.3.16 Interface SVGAnimatedAngle
  • 4.3.17 Interface SVGColor
  • 4.3.18 Interface SVGICCColor
  • 4.3.19 Interface SVGRect
  • 4.3.20 Interface SVGAnimatedRect
  • 4.3.21 Interface SVGUnitTypes
  • 4.3.22 Interface SVGStylable
  • 4.3.23 Interface SVGLocatable
  • 4.3.24 Interface SVGTransformable
  • 4.3.25 Interface SVGTests
  • 4.3.26 Interface SVGLangSpace
  • 4.3.27 Interface SVGExternalResourcesRequired
  • 4.3.28 Interface SVGFitToViewBox
  • 4.3.29 Interface SVGZoomAndPan
  • 4.3.30 Interface SVGViewSpec
  • 4.3.31 Interface SVGURIReference
  • 4.3.32 Interface SVGCSSRule
  • 4.3.33 Interface SVGRenderingIntent
  • 4.1 Basic data types

    This section defines a number of common data types used in the definitions of SVG properties and attributes. Some data types that are not referenced by multiple properties and attributes are defined inline in subsequent chapters.

    <angle>

    An angle value is a <number> optionally followed immediately with an angle unit identifier. Angle unit identifiers are:

    For properties defined in CSS 2 [CSS2], an angle unit identifier must be provided. For SVG-specific attributes and properties, the angle unit identifier is optional. If not provided, the angle value is assumed to be in degrees.

    In the SVG DOM, <angle> values are represented using SVGAngle or SVGAnimatedAngle objects.

    <anything>

    The basic type <anything> is a sequence of zero or more characters. Specifically:

    anything ::= Char*
    

    where Char is the production for a character, as defined in XML 1.0 ([XML10], section 2.2).

    <color>

    The basic type <color> is a CSS 2 compatible specification for a color in the sRGB color space [SRGB]. <color> applies to SVG's use of the 'color' property and is a component of the definitions of properties 'fill', 'stroke', 'stop-color', 'flood-color' and 'lighting-color', which also offer optional ICC-based color specifications.

    SVG supports all of the syntax alternatives for <color> defined in CSS2 syntax and basic data types ([CSS2], section 4.3.6), with the exception that SVG allows an expanded list of recognized color keywords names.

    A <color> is either a keyword (see Recognized color keyword names) or a numerical RGB specification.

    In addition to these color keywords, users may specify keywords that correspond to the colors used by objects in the user's environment. The normative definition of these keywords is found in User preferences for colors ([CSS2], section 18.2).

    The format of an RGB value in hexadecimal notation is a "#" immediately followed by either three or six hexadecimal characters. The three-digit RGB notation (#rgb) is converted into six-digit form (#rrggbb) by replicating digits, not by adding zeros. For example, #fb0 expands to #ffbb00. This ensures that white (#ffffff) can be specified with the short notation (#fff) and removes any dependencies on the color depth of the display. The format of an RGB value in the functional notation is "rgb(" followed by a comma-separated list of three numerical values (either three integer values or three percentage values) followed by ")". The integer value 255 corresponds to 100%, and to F or FF in the hexadecimal notation: rgb(255,255,255) = rgb(100%,100%,100%) = #FFF. White space characters are allowed around the numerical values. All RGB colors are specified in the sRGB color space [SRGB]. Using sRGB provides an unambiguous and objectively measurable definition of the color, which can be related to international standards (see [COLORIMETRY]).

    
          color    ::= "#" hexdigit hexdigit hexdigit (hexdigit hexdigit hexdigit)?
          | "rgb(" wsp* integer comma integer comma integer wsp* ")"
          | "rgb(" wsp* integer "%" comma integer "%" comma integer "%" wsp* ")"
          | color-keyword
          hexdigit ::= [0-9A-Fa-f]
          comma    ::= wsp* "," wsp*
        
    

    where color-keyword matches (case insensitively) one of the color keywords listed in Recognized color keyword names below, or one of the system color keywords listed in User preferences for colors ([CSS2], section 18.2).

    The corresponding SVG DOM interface definitions for <color> are defined in Document Object Model CSS; in particular, see RGBColor ([DOM2STYLE], section 2.2). SVG's extension to color, including the ability to specify ICC-based colors, are represented using DOM interface SVGColor.

    <coordinate>

    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>.

    Within the SVG DOM, a <coordinate> is represented as an SVGLength or an SVGAnimatedLength.

    <frequency>

    Frequency values are used with aural properties. As defined in CSS 2, a frequency value is a <number> immediately followed by a frequency unit identifier. The frequency unit identifiers are:

    Frequency values may not be negative.

    In the SVG DOM, <frequency> values are represented using the CSSPrimitiveValue interface defined in Document Object Model CSS ([DOM2STYLE], section 2.2).

    <integer>

    An <integer> is specified as an optional sign character ("+" or "-") followed by one or more digits "0" to "9":

    
    integer ::= ("+" | "-")? [0-9]+
    
    If the sign character is not present, the number is non-negative

    Basic data types

    The common data types for SVG's properties and attributes fall into the following categories:

    range for an <integer> encompasses ( 2147483648 to 2147483647. an <integer> long SVGAnimatedInteger is different from those ' ' ' ' ' ' percentage percentage
    <list-of-Ts>
    (Where T is some type.) U+0020 U+0009 U+000A U+000D U+000C

    The following is a template for an EBNF grammar describing the <list-of-Ts> syntax:

    list-of-Ts ::= T T list-of-Ts ::= "," "," wsp ::=

    Within the SVG DOM, values of a <list-of-Ts> type are represented by an interface specific for the particular type T. For example, a <list-of-lengths> is represented in the SVG DOM using an SVGLengthList or SVGAnimatedLengthList object.

    <number>

    A <number> is used to represent a real number value. The specification of real number values for property values is different from those for XML attribute values.

    Unless stated otherwise for a particular attribute or property, a <number> has the capacity for at least a single-precision floating point number and has a range (at a minimum) of -3.4e+38F to +3.4e+38F.

    It is recommended that higher precision floating point storage and computation be performed on operations such as coordinate system transformations to provide the best possible precision and to prevent round-off errors.

    Conforming High-Quality SVG Viewers are required to use at least double-precision floating point for intermediate calculations on certain numerical operations.

    Within the SVG DOM, a <number> is represented as a float or an SVGAnimatedNumber.

    <number-optional-number>

    A pair of <number>s, where the second <number> is optional.

    
    number-optional-number ::= number
                               | number comma-wsp number
    

    In the SVG DOM, a <number-optional-number> is represented using a pair of SVGAnimatedInteger or SVGAnimatedNumber objects.

    <paint>
    values are using objects " ".
    
    percentage ::= number "%"
    
    using objectA <transform-list> is used to specify a list of coordinate system transformations. A
    <time>

    A time value is a <number> immediately followed by a time unit identifier. The time unit identifiers are:

    In the SVG DOM, <time> values are represented using the CSSPrimitiveValue interface defined in Document Object Model CSS ([DOM2STYLE], section 2.2).

    <transform-list>
    is given a value using object A <uri> is a Uniform Resource Identifier reference. a value using value object.

    4.2 Recognized color keyword names

    The following is the list of recognized color keywords that can be used as a keyword value for data type <color>:

    aliceblue color-patchalicebluergb(240, 248, 255)
    antiquewhite color-patchantiquewhitergb(250, 235, 215)
    aqua color-patchaquargb( 0, 255, 255)
    aquamarine color-patchaquamarinergb(127, 255, 212)
    azure color-patchazurergb(240, 255, 255)
    beige color-patchbeigergb(245, 245, 220)
    bisque color-patchbisquergb(255, 228, 196)
    black color-patchblackrgb( 0, 0, 0)
    blanchedalmond color-patchblanchedalmondrgb(255, 235, 205)
    blue color-patchbluergb( 0, 0, 255)
    blueviolet color-patchbluevioletrgb(138, 43, 226)
    brown color-patchbrownrgb(165, 42, 42)
    burlywood color-patchburlywoodrgb(222, 184, 135)
    cadetblue color-patchcadetbluergb( 95, 158, 160)
    chartreuse color-patchchartreusergb(127, 255, 0)
    chocolate color-patchchocolatergb(210, 105, 30)
    coral color-patchcoralrgb(255, 127, 80)
    cornflowerblue color-patchcornflowerbluergb(100, 149, 237)
    cornsilk color-patchcornsilkrgb(255, 248, 220)
    crimson color-patchcrimsonrgb(220, 20, 60)
    cyan color-patchcyanrgb( 0, 255, 255)
    darkblue color-patchdarkbluergb( 0, 0, 139)
    darkcyan color-patchdarkcyanrgb( 0, 139, 139)
    darkgoldenrod color-patchdarkgoldenrodrgb(184, 134, 11)
    darkgray color-patchdarkgrayrgb(169, 169, 169)
    darkgreen color-patchdarkgreenrgb( 0, 100, 0)
    darkgrey color-patchdarkgreyrgb(169, 169, 169)
    darkkhaki color-patchdarkkhakirgb(189, 183, 107)
    darkmagenta color-patchdarkmagentargb(139, 0, 139)
    darkolivegreen color-patchdarkolivegreenrgb( 85, 107, 47)
    darkorange color-patchdarkorangergb(255, 140, 0)
    darkorchid color-patchdarkorchidrgb(153, 50, 204)
    darkred color-patchdarkredrgb(139, 0, 0)
    darksalmon color-patchdarksalmonrgb(233, 150, 122)
    darkseagreen color-patchdarkseagreenrgb(143, 188, 143)
    darkslateblue color-patchdarkslatebluergb( 72, 61, 139)
    darkslategray color-patchdarkslategrayrgb( 47, 79, 79)
    darkslategrey color-patchdarkslategreyrgb( 47, 79, 79)
    darkturquoise color-patchdarkturquoisergb( 0, 206, 209)
    darkviolet color-patchdarkvioletrgb(148, 0, 211)
    deeppink color-patchdeeppinkrgb(255, 20, 147)
    deepskyblue color-patchdeepskybluergb( 0, 191, 255)
    dimgray color-patchdimgrayrgb(105, 105, 105)
    dimgrey color-patchdimgreyrgb(105, 105, 105)
    dodgerblue color-patchdodgerbluergb( 30, 144, 255)
    firebrick color-patchfirebrickrgb(178, 34, 34)
    floralwhite color-patchfloralwhitergb(255, 250, 240)
    forestgreen color-patchforestgreenrgb( 34, 139, 34)
    fuchsia color-patchfuchsiargb(255, 0, 255)
    gainsboro color-patchgainsbororgb(220, 220, 220)
    ghostwhite color-patchghostwhitergb(248, 248, 255)
    gold color-patchgoldrgb(255, 215, 0)
    goldenrod color-patchgoldenrodrgb(218, 165, 32)
    gray color-patchgrayrgb(128, 128, 128)
    grey color-patchgreyrgb(128, 128, 128)
    green color-patchgreenrgb( 0, 128, 0)
    greenyellow color-patchgreenyellowrgb(173, 255, 47)
    honeydew color-patchhoneydewrgb(240, 255, 240)
    hotpink color-patchhotpinkrgb(255, 105, 180)
    indianred color-patchindianredrgb(205, 92, 92)
    indigo color-patchindigorgb( 75, 0, 130)
    ivory color-patchivoryrgb(255, 255, 240)
    khaki color-patchkhakirgb(240, 230, 140)
    lavender color-patchlavenderrgb(230, 230, 250)
    lavenderblush color-patchlavenderblushrgb(255, 240, 245)
    lawngreen color-patchlawngreenrgb(124, 252, 0)
    lemonchiffon color-patchlemonchiffonrgb(255, 250, 205)
    lightblue color-patchlightbluergb(173, 216, 230)
    lightcoral color-patchlightcoralrgb(240, 128, 128)
    lightcyan color-patchlightcyanrgb(224, 255, 255)
    lightgoldenrodyellow color-patchlightgoldenrodyellowrgb(250, 250, 210)
    lightgray color-patchlightgrayrgb(211, 211, 211)
    lightgreen color-patchlightgreenrgb(144, 238, 144)
    lightgrey color-patchlightgreyrgb(211, 211, 211)
        
    lightpink color-patchlightpinkrgb(255, 182, 193)
    lightsalmon color-patchlightsalmonrgb(255, 160, 122)
    lightseagreen color-patchlightseagreenrgb( 32, 178, 170)
    lightskyblue color-patchlightskybluergb(135, 206, 250)
    lightslategray color-patchlightslategrayrgb(119, 136, 153)
    lightslategrey color-patchlightslategreyrgb(119, 136, 153)
    lightsteelblue color-patchlightsteelbluergb(176, 196, 222)
    lightyellow color-patchlightyellowrgb(255, 255, 224)
    lime color-patchlimergb( 0, 255, 0)
    limegreen color-patchlimegreenrgb( 50, 205, 50)
    linen color-patchlinenrgb(250, 240, 230)
    magenta color-patchmagentargb(255, 0, 255)
    maroon color-patchmaroonrgb(128, 0, 0)
    mediumaquamarine color-patchmediumaquamarinergb(102, 205, 170)
    mediumblue color-patchmediumbluergb( 0, 0, 205)
    mediumorchid color-patchmediumorchidrgb(186, 85, 211)
    mediumpurple color-patchmediumpurplergb(147, 112, 219)
    mediumseagreen color-patchmediumseagreenrgb( 60, 179, 113)
    mediumslateblue color-patchmediumslatebluergb(123, 104, 238)
    mediumspringgreen color-patchmediumspringgreenrgb( 0, 250, 154)
    mediumturquoise color-patchmediumturquoisergb( 72, 209, 204)
    mediumvioletred color-patchmediumvioletredrgb(199, 21, 133)
    midnightblue color-patchmidnightbluergb( 25, 25, 112)
    mintcream color-patchmintcreamrgb(245, 255, 250)
    mistyrose color-patchmistyrosergb(255, 228, 225)
    moccasin color-patchmoccasinrgb(255, 228, 181)
    navajowhite color-patchnavajowhitergb(255, 222, 173)
    navy color-patchnavyrgb( 0, 0, 128)
    oldlace color-patcholdlacergb(253, 245, 230)
    olive color-patcholivergb(128, 128, 0)
    olivedrab color-patcholivedrabrgb(107, 142, 35)
    orange color-patchorangergb(255, 165, 0)
    orangered color-patchorangeredrgb(255, 69, 0)
    orchid color-patchorchidrgb(218, 112, 214)
    palegoldenrod color-patchpalegoldenrodrgb(238, 232, 170)
    palegreen color-patchpalegreenrgb(152, 251, 152)
    paleturquoise color-patchpaleturquoisergb(175, 238, 238)
    palevioletred color-patchpalevioletredrgb(219, 112, 147)
    papayawhip color-patchpapayawhiprgb(255, 239, 213)
    peachpuff color-patchpeachpuffrgb(255, 218, 185)
    peru color-patchperurgb(205, 133, 63)
    pink color-patchpinkrgb(255, 192, 203)
    plum color-patchplumrgb(221, 160, 221)
    powderblue color-patchpowderbluergb(176, 224, 230)
    purple color-patchpurplergb(128, 0, 128)
    red color-patchredrgb(255, 0, 0)
    rosybrown color-patchrosybrownrgb(188, 143, 143)
    royalblue color-patchroyalbluergb( 65, 105, 225)
    saddlebrown color-patchsaddlebrownrgb(139, 69, 19)
    salmon color-patchsalmonrgb(250, 128, 114)
    sandybrown color-patchsandybrownrgb(244, 164, 96)
    seagreen color-patchseagreenrgb( 46, 139, 87)
    seashell color-patchseashellrgb(255, 245, 238)
    sienna color-patchsiennargb(160, 82, 45)
    silver color-patchsilverrgb(192, 192, 192)
    skyblue color-patchskybluergb(135, 206, 235)
    slateblue color-patchslatebluergb(106, 90, 205)
    slategray color-patchslategrayrgb(112, 128, 144)
    slategrey color-patchslategreyrgb(112, 128, 144)
    snow color-patchsnowrgb(255, 250, 250)
    springgreen color-patchspringgreenrgb( 0, 255, 127)
    steelblue color-patchsteelbluergb( 70, 130, 180)
    tan color-patchtanrgb(210, 180, 140)
    teal color-patchtealrgb( 0, 128, 128)
    thistle color-patchthistlergb(216, 191, 216)
    tomato color-patchtomatorgb(255, 99, 71)
    turquoise color-patchturquoisergb( 64, 224, 208)
    violet color-patchvioletrgb(238, 130, 238)
    wheat color-patchwheatrgb(245, 222, 179)
    white color-patchwhitergb(255, 255, 255)
    whitesmoke color-patchwhitesmokergb(245, 245, 245)
    yellow color-patchyellowrgb(255, 255, 0)
    yellowgreen color-patchyellowgreenrgb(154, 205, 50)
    blank entry  

    4.3 Basic DOM interfaces

    4.3.1

    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.


    Interface SVGElement

    All of the SVG DOM interfaces that correspond directly to elements in the SVG language (

    such as

    e.g., the SVGPathElement interface

    for

    corresponds directly to the 'path' element in the language)

    derive

    are derivative from

    the

    base class SVGElement

    interface

    .


    IDL Definition
    
    interface SVGElement : Element { 
               attribute DOMString id
    
    setraises(DOMException);
    ;
                           // raises DOMException on setting
               attribute DOMString xmlbase
    
    setraises(DOMException);
    ;
                           // raises DOMException on setting
      readonly attribute SVGSVGElement ownerSVGElement;
      readonly attribute SVGElement viewportElement;
    };
    
    

    Attributes
    :
    DOMString id
    (DOMString)
    The value of the
    '
    id
    '
    attribute on the given element.
    Exceptions on setting
    DOMException
    , code
    NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
    DOMString xmlbase
    (DOMString)
    Corresponds to attribute
    '
    xml:base
    '
    on the given element.
    Exceptions on setting
    DOMException
    , code (
    NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
    ownerSVGElement
    readonlySVGSVGElement
    ) (
    ownerSVGElement
    The nearest ancestor 'svg' element. Null if the given element is the outermost 'svg' element.
    viewportElement
    readonlySVGElement
    )
    viewportElement
    The element which established the current viewport. Often, the nearest ancestor 'svg' element. Null if the given element is the outermost 'svg' element.
    4.3.2

    Interface SVGAnimatedBoolean

    Used for attributes of type boolean which can be animated.

    IDL Definition
    
    interface SVGAnimatedBoolean { 
               attribute boolean baseVal
    
    setraises(DOMException);
    ;
                           // raises DOMException on setting
      readonly attribute boolean animVal;
    };
    
    

    Attributes
    :
    boolean baseVal
    (boolean)
    The base value of the given attribute before applying any animations.
    Exceptions on setting
    DOMException
    , code (
    NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
    animVal
    readonlyboolean
    )
    animVal
    If the given attribute or property is being animated, contains the current animated value of the attribute or property. If the given attribute or property is not currently being animated, contains the same value as 'baseVal'.
    4.3.3

    Interface SVGAnimatedString

    Used for attributes of type DOMString which can be animated.

    IDL Definition
    
    interface SVGAnimatedString { 
               attribute DOMString baseVal
    
    setraises(DOMException);
    ;
                           // raises DOMException on setting
      readonly attribute DOMString animVal;
    };
    
    

    Attributes
    :
    DOMString baseVal
    (DOMString)
    The base value of the given attribute before applying any animations.
    Exceptions on setting
    DOMException
    , code (
    NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
    animVal
    readonlyDOMString
    )
    animVal
    If the given attribute or property is being animated, contains the current animated value of the attribute or property. If the given attribute or property is not currently being animated, contains the same value as 'baseVal'.
    4.3.4

    Interface SVGStringList

    This interface defines a list of DOMString values 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.


    IDL Definition
    
    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 );
    };
    
    

    Attributes
    :numberOfItems (
    readonlyunsigned long
    )void
    numberOfItems
    The number of items in the list.
    Operations:
    Methods
    clear
    ()
    Clears all existing current items from the list, with the result being an empty list.
    No Parameters
    No Return Value
    Exceptions
    DOMException
    , code
    NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
    DOMString
    initialize
    (in DOMString newItem)
    Clears all existing current items from the list and re-initializes the list to hold the single item specified by the parameter.
    Parameters
    in DOMString newItemThe item which should become the only member of the list.
    Returns
    Return value
    DOMStringThe item being inserted into the list.
    Exceptions
    DOMException
    , code
    NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
    SVGException
    , code
    SVG_WRONG_TYPE_ERR: Raised if parameter newItem is the wrong type of object for the given list.
    DOMString
    getItem
    (in unsigned long index)
    Returns the specified item from the list.
    Parameters
    in unsigned long indexThe index of the item from the list which is to be returned. The first item is number 0.
    Returns
    Return value
    DOMStringThe selected item.
    Exceptions
    DOMException
    , code
    INDEX_SIZE_ERR: Raised if the index number is negative or greater than or equal to numberOfItems.
    DOMString
    insertItemBefore
    (in DOMString newItem, in unsigned long index)
    Inserts a new item into the list at the specified position. The first item is number 0. If newItem is already in a list, it is removed from its previous list before it is inserted into this list.
    Parameters
    in DOMString newItemThe item which is to be inserted into the list.
    in unsigned long indexThe 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.
    Returns
    Return value
    DOMStringThe inserted item.
    Exceptions
    DOMException
    , code
    NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
    SVGException
    , code
    SVG_WRONG_TYPE_ERR: Raised if parameter newItem is the wrong type of object for the given list.
    DOMString
    replaceItem
    (in DOMString newItem, in unsigned long index)
    Replaces an existing item in the list with a new item. If newItem is already in a list, it is removed from its previous list before it is inserted into this list.
    Parameters
    in DOMString newItemThe item which is to be inserted into the list.
    in unsigned long indexThe index of the item which is to be replaced. The first item is number 0.
    Returns
    Return value
    DOMStringThe inserted item.
    Exceptions
    DOMException
    , code
    NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
    DOMException, code
    INDEX_SIZE_ERR: Raised if the index number is negative or greater than or equal to numberOfItems.
    SVGException
    , code
    SVG_WRONG_TYPE_ERR: Raised if parameter newItem is the wrong type of object for the given list.
    DOMString
    removeItem
    (in unsigned long index)
    Removes an existing item from the list.
    Parameters
    in unsigned long indexThe index of the item which is to be removed. The first item is number 0.
    Returns
    Return value
    DOMStringThe removed item.
    Exceptions
    DOMException
    , code
    NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
    DOMException, code
    INDEX_SIZE_ERR: Raised if the index number is negative or greater than or equal to numberOfItems.
    DOMString
    appendItem
    (in DOMString newItem)
    Inserts a new item at the end of the list. If newItem is already in a list, it is removed from its previous list before it is inserted into this list.
    Parameters
    in DOMString newItemThe item which is to be inserted into the list. The first item is number 0.
    Returns
    Return value
    DOMStringThe inserted item.
    Exceptions
    DOMException
    , code
    NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
    SVGException
    , code
    SVG_WRONG_TYPE_ERR: Raised if parameter newItem is the wrong type of object for the given list.
    4.3.5

    Interface SVGAnimatedEnumeration

    Used for attributes whose value must be a constant from a particular enumeration and which can be animated.

    IDL Definition
    
    interface SVGAnimatedEnumeration { 
               attribute unsigned short baseVal
    
    setraises(DOMException);
    ;
                           // raises DOMException on setting
      readonly attribute unsigned short animVal;
    };
    
    

    Attributes
    :baseVal (
    unsigned short
    )
    baseVal
    The base value of the given attribute before applying any animations.
    Exceptions on setting
    DOMException
    , code (
    NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
    animVal
    readonlyunsigned short
    )
    animVal
    If the given attribute or property is being animated, contains the current animated value of the attribute or property. If the given attribute or property is not currently being animated, contains the same value as 'baseVal'.
    4.3.6

    Interface SVGAnimatedInteger

    Used for attributes of basic type <integer> 'integer' which can be animated.

    IDL Definition
    
    interface SVGAnimatedInteger { 
               attribute long baseVal
    
    setraises(DOMException);
    ;
                           // raises DOMException on setting
      readonly attribute long animVal;
    };
    
    

    Attributes
    :
    long baseVal
    (long)
    The base value of the given attribute before applying any animations.
    Exceptions on setting
    DOMException
    , code (
    NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
    animVal
    readonlylong
    )
    animVal
    If the given attribute or property is being animated, contains the current animated value of the attribute or property. If the given attribute or property is not currently being animated, contains the same value as 'baseVal'.
    4.3.7

    Interface SVGNumber

    Used for attributes of basic type <number>. 'number'.

    IDL Definition
    
    interface SVGNumber { 
               attribute float value
    
    setraises(DOMException); };
    Attributes:
    value (float)
    ;
                           // raises DOMException on setting
    };
    
    

    Attributes
    float value
    The value of the given attribute.
    Exceptions on setting
    DOMException
    , code
    NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
    4.3.8

    Interface SVGAnimatedNumber

    Used for attributes of basic type <number> 'number' which can be animated.

    IDL Definition
    
    interface SVGAnimatedNumber { 
               attribute float baseVal
    
    setraises(DOMException);
    ;
                           // raises DOMException on setting
      readonly attribute float animVal;
    };
    
    

    Attributes
    :
    float baseVal
    (float)
    The base value of the given attribute before applying any animations.
    Exceptions on setting
    DOMException
    , code (
    NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
    animVal
    readonlyfloat
    )
    animVal
    If the given attribute or property is being animated, contains the current animated value of the attribute or property. If the given attribute or property is not currently being animated, contains the same value as 'baseVal'.
    4.3.9

    Interface SVGNumberList

    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.


    IDL Definition
    
    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 );
    };
    
    

    Attributes
    :numberOfItems (
    readonlyunsigned long
    )void
    numberOfItems
    The number of items in the list.
    Operations:
    Methods
    clear
    ()
    Clears all existing current items from the list, with the result being an empty list.
    No Parameters
    No Return Value
    Exceptions
    DOMException
    , code
    NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
    SVGNumber
    initialize
    (in SVGNumber newItem)
    Clears all existing current items from the list and re-initializes the list to hold the single item specified by the parameter.
    Parameters
    in SVGNumber newItemThe item which should become the only member of the list.
    Returns
    Return value
    SVGNumberThe item being inserted into the list.
    Exceptions
    DOMException
    , code
    NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
    SVGException
    , code
    SVG_WRONG_TYPE_ERR: Raised if parameter newItem is the wrong type of object for the given list.
    SVGNumber
    getItem
    (in unsigned long index)
    Returns the specified item from the list.
    Parameters
    in unsigned long indexThe index of the item from the list which is to be returned. The first item is number 0.
    Returns
    Return value
    SVGNumberThe selected item.
    Exceptions
    DOMException
    , code
    INDEX_SIZE_ERR: Raised if the index number is negative or greater than or equal to numberOfItems.
    SVGNumber
    insertItemBefore
    (in SVGNumber newItem, in unsigned long index)
    Inserts a new item into the list at the specified position. The first item is number 0. If newItem is already in a list, it is removed from its previous list before it is inserted into this list.
    Parameters
    in SVGNumber newItemThe item which is to be inserted into the list.
    in unsigned long indexThe 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.
    Returns
    Return value
    SVGNumberThe inserted item.
    Exceptions
    DOMException
    , code
    NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
    SVGException
    , code
    SVG_WRONG_TYPE_ERR: Raised if parameter newItem is the wrong type of object for the given list.
    SVGNumber
    replaceItem
    (in SVGNumber newItem, in unsigned long index)
    Replaces an existing item in the list with a new item. If newItem is already in a list, it is removed from its previous list before it is inserted into this list.
    Parameters
    in SVGNumber newItemThe item which is to be inserted into the list.
    in unsigned long indexThe index of the item which is to be replaced. The first item is number 0.
    Returns
    Return value
    SVGNumberThe inserted item.
    Exceptions
    DOMException
    , code
    NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
    DOMException, code
    INDEX_SIZE_ERR: Raised if the index number is negative or greater than or equal to numberOfItems.
    SVGException
    , code
    SVG_WRONG_TYPE_ERR: Raised if parameter newItem is the wrong type of object for the given list.
    SVGNumber
    removeItem
    (in unsigned long index)
    Removes an existing item from the list.
    Parameters
    in unsigned long indexThe index of the item which is to be removed. The first item is number 0.
    Returns
    Return value
    SVGNumberThe removed item.
    Exceptions
    DOMException
    , code
    NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
    DOMException, code
    INDEX_SIZE_ERR: Raised if the index number is negative or greater than or equal to numberOfItems.
    SVGNumber
    appendItem
    (in SVGNumber newItem)
    Inserts a new item at the end of the list. If newItem is already in a list, it is removed from its previous list before it is inserted into this list.
    Parameters
    in SVGNumber newItemThe item which is to be inserted into the list. The first item is number 0.
    Returns
    Return value
    SVGNumberThe inserted item.
    Exceptions
    DOMException
    , code
    NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
    SVGException
    , code
    SVG_WRONG_TYPE_ERR: Raised if parameter newItem is the wrong type of object for the given list.
    4.3.10

    Interface SVGAnimatedNumberList

    Used for attributes which take a list of numbers and which can be animated.

    IDL Definition
    
    interface SVGAnimatedNumberList { 
      readonly attribute SVGNumberList baseVal;
      readonly attribute SVGNumberList animVal;
    };
    
    

    Attributes
    :baseVal (
    readonlySVGNumberList
    ) (
    baseVal
    The base value of the given attribute before applying any animations.
    animVal
    readonlySVGNumberList
    )
    animVal
    If the given attribute or property is being animated, then this attribute contains the current animated value of the attribute or property, and both the object itself and its contents are readonly. If the given attribute or property is not currently being animated, then this attribute contains the same value as 'baseVal'.
    4.3.11

    Interface SVGLength

    The SVGLength interface corresponds to the <length> basic data type.


    IDL Definition
    
    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
    
    setraises(DOMException);
    ;
                           // raises DOMException on setting
               attribute float          valueInSpecifiedUnits
    
    setraises(DOMException);
    ;
                           // raises DOMException on setting
               attribute DOMString      valueAsString
    
    setraises(DOMException); void newValueSpecifiedUnits(
    ;
                           // raises DOMException on setting
      void newValueSpecifiedUnits ( in unsigned short unitType, in float valueInSpecifiedUnits );
      void convertToSpecifiedUnits ( in unsigned short unitType );
    };
    
    Constants in
    
    
    

    Definition group
    “Length Unit Types”:
    Length Unit Types
    Defined constants
    SVG_LENGTHTYPE_UNKNOWN
    (unsigned short)
    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
    (unsigned short)
    No unit type was provided (i.e., a unitless value was specified), which indicates a value in user units.
    SVG_LENGTHTYPE_PERCENTAGE
    (unsigned short)
    A percentage value was specified.
    SVG_LENGTHTYPE_EMS
    (unsigned short)
    A value was specified using the "em" units defined in
    CSS 2
    CSS2.
    SVG_LENGTHTYPE_EXS
    (unsigned short)
    A value was specified using the "ex" units defined in
    CSS 2
    CSS2.
    SVG_LENGTHTYPE_PX
    (unsigned short)
    A value was specified using the "px" units defined in
    CSS 2
    CSS2.
    SVG_LENGTHTYPE_CM
    (unsigned short)
    A value was specified using the "cm" units defined in
    CSS 2
    CSS2.
    SVG_LENGTHTYPE_MM
    (unsigned short)
    A value was specified using the "mm" units defined in
    CSS 2
    CSS2.
    SVG_LENGTHTYPE_IN
    (unsigned short)
    A value was specified using the "in" units defined in
    CSS 2
    CSS2.
    SVG_LENGTHTYPE_PT
    (unsigned short)
    A value was specified using the "pt" units defined in
    CSS 2
    CSS2.
    SVG_LENGTHTYPE_PC
    (unsigned short)
    A value was specified using the "pc" units defined in
    CSS 2
    CSS2.
    Attributes
    :unitType (
    readonlyunsigned short
    )
    unitType
    The type of the value as specified by one of the
    SVG_LENGTHTYPE_* constants defined on this interface.
    value (float)
    constants specified above.
    float value
    The value as an floating point value, in user units. Setting this attribute will cause valueInSpecifiedUnits and valueAsString to be updated automatically to reflect this setting.
    Exceptions on setting
    DOMException
    , code
    NO_MODIFICATION_ALLOWED_ERR: Raised
    when the list cannot be modified.
    valueInSpecifiedUnits (float)
    on an attempt to change the value of a readonly attribute.
    float valueInSpecifiedUnits
    The value as an floating point value, in the units expressed by unitType. Setting this attribute will cause value and valueAsString to be updated automatically to reflect this setting.
    Exceptions on setting
    DOMException
    , code
    NO_MODIFICATION_ALLOWED_ERR: Raised
    when the list cannot be modified.
    valueAsString (DOMString)
    on an attempt to change the value of a readonly attribute.
    DOMString valueAsString
    The value as a string value, in the units expressed by unitType. Setting this attribute will cause value and valueInSpecifiedUnits to be updated automatically to reflect this setting.
    Exceptions on setting
    DOMException
    , code
    NO_MODIFICATION_ALLOWED_ERR: Raised
    when the list cannot be modified.
    Operations:
    void newValueSpecifiedUnits(in unsigned short unitType, in float valueInSpecifiedUnits)
    on an attempt to change the value of a readonly attribute.
    Methods
    newValueSpecifiedUnits
    Reset the value as a number with an associated unitType, thereby replacing the values for all of the attributes on the object.
    Parameters
    in unsigned short unitTypeThe
    unit type
    unitType for the value (e.g., SVG_LENGTHTYPE_MM).
    in float valueInSpecifiedUnitsThe new value.
    void convertToSpecifiedUnits(in unsigned short unitType)
    No Return Value
    No Exceptions
    convertToSpecifiedUnits
    Preserve the same underlying stored value, but reset the stored unit identifier to the given unitType. Object attributes unitType,
    valueInSpecifiedUnits
    valueAsSpecified and valueAsString might be modified as a result of this method. For example, if the original value were "0.5cm" and the method was invoked to convert to millimeters, then the unitType would be changed to SVG_LENGTHTYPE_MM,
    valueInSpecifiedUnits
    valueAsSpecified would be changed to the numeric value 5 and valueAsString would be changed to "5mm".
    Parameters
    in unsigned short unitTypeThe
    unit type
    unitType to switch to (e.g., SVG_LENGTHTYPE_MM).
    4.3.12
    No Return Value
    No Exceptions

    Interface SVGAnimatedLength

    Used for attributes of basic type <length> 'length' which can be animated.

    IDL Definition
    
    interface SVGAnimatedLength { 
      readonly attribute SVGLength baseVal;
      readonly attribute SVGLength animVal;
    };
    
    

    Attributes
    :baseVal (
    readonlySVGLength
    ) (
    baseVal
    The base value of the given attribute before applying any animations.
    animVal
    readonlySVGLength
    )
    animVal
    If the given attribute or property is being animated, contains the current animated value of the attribute or property, and both the object itself and its contents are readonly. If the given attribute or property is not currently being animated, contains the same value as 'baseVal'.
    4.3.13

    Interface SVGLengthList

    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.


    IDL Definition
    
    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 );
    };
    
    

    Attributes
    :numberOfItems (
    readonlyunsigned long
    )void
    numberOfItems
    The number of items in the list.
    Operations:
    Methods
    clear
    ()
    Clears all existing current items from the list, with the result being an empty list.
    No Parameters
    No Return Value
    Exceptions
    DOMException
    , code
    NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
    SVGLength
    initialize
    (in SVGLength newItem)
    Clears all existing current items from the list and re-initializes the list to hold the single item specified by the parameter.
    Parameters
    in SVGLength newItemThe item which should become the only member of the list.
    Returns
    Return value
    SVGLengthThe item being inserted into the list.
    Exceptions
    DOMException
    , code
    NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
    SVGException
    , code
    SVG_WRONG_TYPE_ERR: Raised if parameter newItem is the wrong type of object for the given list.
    SVGLength
    getItem
    (in unsigned long index)
    Returns the specified item from the list.
    Parameters
    in unsigned long indexThe index of the item from the list which is to be returned. The first item is number 0.
    Returns
    Return value
    SVGLengthThe selected item.
    Exceptions
    DOMException
    , code
    INDEX_SIZE_ERR: Raised if the index number is negative or greater than or equal to numberOfItems.
    SVGLength
    insertItemBefore
    (in SVGLength newItem, in unsigned long index)
    Inserts a new item into the list at the specified position. The first item is number 0. If newItem is already in a list, it is removed from its previous list before it is inserted into this list.
    Parameters
    in SVGLength newItemThe item which is to be inserted into the list.
    in unsigned long indexThe 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.
    Returns
    Return value
    SVGLengthThe inserted item.
    Exceptions
    DOMException
    , code
    NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
    SVGException
    , code
    SVG_WRONG_TYPE_ERR: Raised if parameter newItem is the wrong type of object for the given list.
    SVGLength
    replaceItem
    (in SVGLength newItem, in unsigned long index)
    Replaces an existing item in the list with a new item. If newItem is already in a list, it is removed from its previous list before it is inserted into this list.
    Parameters
    in SVGLength newItemThe item which is to be inserted into the list.
    in unsigned long indexThe index of the item which is to be replaced. The first item is number 0.
    Returns
    Return value
    SVGLengthThe inserted item.
    Exceptions
    DOMException
    , code
    NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
    DOMException, code
    INDEX_SIZE_ERR: Raised if the index number is negative or greater than or equal to numberOfItems.
    SVGException
    , code
    SVG_WRONG_TYPE_ERR: Raised if parameter newItem is the wrong type of object for the given list.
    SVGLength
    removeItem
    (in unsigned long index)
    Removes an existing item from the list.
    Parameters
    in unsigned long indexThe index of the item which is to be removed. The first item is number 0.
    Returns
    Return value
    SVGLengthThe removed item.
    Exceptions
    DOMException
    , code
    NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
    DOMException, code
    INDEX_SIZE_ERR: Raised if the index number is negative or greater than or equal to numberOfItems.
    SVGLength
    appendItem
    (in SVGLength newItem)
    Inserts a new item at the end of the list. If newItem is already in a list, it is removed from its previous list before it is inserted into this list.
    Parameters
    in SVGLength newItemThe item which is to be inserted into the list. The first item is number 0.
    Returns
    Return value
    SVGLengthThe inserted item.
    Exceptions
    DOMException
    , code
    NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
    SVGException
    , code
    SVG_WRONG_TYPE_ERR: Raised if parameter newItem is the wrong type of object for the given list.
    4.3.14

    Interface SVGAnimatedLengthList

    Used for attributes of type SVGLengthList which can be animated.

    IDL Definition
    
    interface SVGAnimatedLengthList { 
      readonly attribute SVGLengthList baseVal;
      readonly attribute SVGLengthList animVal;
    };
    
    

    Attributes
    :baseVal (
    readonlySVGLengthList
    ) (
    baseVal
    The base value of the given attribute before applying any animations.
    animVal
    readonlySVGLengthList
    )
    animVal
    If the given attribute or property is being animated, contains the current animated value of the attribute or property, and both the object itself and its contents are readonly. If the given attribute or property is not currently being animated, contains the same value as 'baseVal'.
    4.3.15

    Interface SVGAngle

    The SVGAngle interface corresponds to the <angle> basic data type.


    IDL Definition
    
    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
    
    setraises(DOMException);
    ;
                           // raises DOMException on setting
               attribute float          valueInSpecifiedUnits
    
    setraises(DOMException);
    ;
                           // raises DOMException on setting
               attribute DOMString      valueAsString
    
    setraises(DOMException); void newValueSpecifiedUnits(
    ;
                           // raises DOMException on setting
      void newValueSpecifiedUnits ( in unsigned short unitType, in float valueInSpecifiedUnits );
      void convertToSpecifiedUnits ( in unsigned short unitType );
    };
    
    Constants in
    
    
    

    Definition group
    “Angle Unit Types”:
    Angle Unit Types
    Defined constants
    SVG_ANGLETYPE_UNKNOWN
    (unsigned short)
    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
    (unsigned short)
    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
    (unsigned short)
    The unit type was explicitly set to degrees.
    SVG_ANGLETYPE_RAD
    (unsigned short)
    The unit type is radians.
    SVG_ANGLETYPE_GRAD
    (unsigned short)
    The unit type is
    radians
    grads.
    Attributes
    :unitType (
    readonlyunsigned short
    )
    unitType
    The type of the value as specified by one of the
    SVG_ANGLETYPE_* constants defined on this interface.
    value (float)
    constants specified above.
    float value
    The angle value as a floating point value, in degrees. Setting this attribute will cause valueInSpecifiedUnits and valueAsString to be updated automatically to reflect this setting.
    Exceptions on setting
    DOMException
    , code
    NO_MODIFICATION_ALLOWED_ERR: Raised
    when the list cannot be modified.
    valueInSpecifiedUnits (float)
    on an attempt to change the value of a readonly attribute.
    float valueInSpecifiedUnits
    The angle value as a floating point value, in the units expressed by unitType. Setting this attribute will cause value and valueAsString to be updated automatically to reflect this setting.
    Exceptions on setting
    DOMException
    , code
    NO_MODIFICATION_ALLOWED_ERR: Raised
    when the list cannot be modified.
    valueAsString (DOMString)
    on an attempt to change the value of a readonly attribute.
    DOMString valueAsString
    The angle value as a string value, in the units expressed by unitType. Setting this attribute will cause value and valueInSpecifiedUnits to be updated automatically to reflect this setting.
    Exceptions on setting
    DOMException
    , code
    NO_MODIFICATION_ALLOWED_ERR: Raised
    when the list cannot be modified.
    Operations:
    void newValueSpecifiedUnits(in unsigned short unitType, in float valueInSpecifiedUnits)
    on an attempt to change the value of a readonly attribute.
    Methods
    newValueSpecifiedUnits
    Reset the value as a number with an associated unitType, thereby replacing the values for all of the attributes on the object.
    Parameters
    in unsigned short unitTypeThe
    unit type
    unitType for the angle value (e.g., SVG_ANGLETYPE_DEG).
    in float valueInSpecifiedUnitsThe angle value.
    void convertToSpecifiedUnits(in unsigned short unitType)
    No Return Value
    No Exceptions
    convertToSpecifiedUnits
    Preserve the same underlying stored value, but reset the stored unit identifier to the given unitType. Object attributes unitType,
    valueInSpecifiedUnits
    valueAsSpecified and valueAsString might be modified as a result of this method.
    Parameters
    in unsigned short unitTypeThe
    unit type
    unitType to switch to (e.g., SVG_ANGLETYPE_DEG).

    4.3.16 Interface SVGAnimatedAngle

    Used for attributes of basic data type <angle> that can be animated.
    No Return Value
    No Exceptions

    Interface SVGAnimatedAngle

    Corresponds to all properties and attributes whose values can be basic type 'angle' and which are animatable.

    IDL Definition
    
    interface SVGAnimatedAngle { 
      readonly attribute SVGAngle baseVal;
      readonly attribute SVGAngle animVal;
    };
    
    

    Attributes
    :baseVal (
    readonlySVGAngle
    ) (
    baseVal
    The base value of the given attribute before applying any animations.
    animVal
    readonlySVGAngle
    )
    animVal
    If the given attribute or property is being animated, contains the current animated value of the attribute or property, and both the object itself and its contents are readonly. If the given attribute or property is not currently being animated, contains the same value as 'baseVal'.
    4.3.17

    Interface SVGColor

    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 DOM Level 2 Style[DOM2-CSS]; in particular, see the RGBColor interface ([DOM2STYLE], section 2.2).[DOM2-CSS-RGBCOLOR].


    IDL Definition
    
    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 );
    };
    
    Constants in group “Color Types”:
    
    
    

    Definition group Color Types
    Defined constants
    SVG_COLORTYPE_UNKNOWN
    (unsigned short)
    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
    (unsigned short)
    An sRGB color has been specified without an alternative ICC color specification.
    SVG_COLORTYPE_RGBCOLOR_ICCCOLOR
    (unsigned short)
    An sRGB color has been specified along with an alternative ICC color specification.
    SVG_COLORTYPE_CURRENTCOLOR
    (unsigned short)
    Corresponds to when keyword 'currentColor' has been specified.
    Attributes
    :colorType (
    readonlyunsigned short
    )
    colorType
    The type of the value as specified by one of the
    SVG_COLORTYPE_* constants defined on this interface.
    rgbColor (readonly RGBColor)
    (
    constants specified above.
    readonly css::RGBColor rgbColor
    The color specified in the sRGB color space.
    iccColor
    readonlySVGICCColor
    )
    void setRGBColor(in DOMString rgbColor)
    iccColor
    The alternate ICC color specification.
    Operations:
    Methods
    setRGBColor
    Modifies the color value to be the specified sRGB color without an alternate ICC color specification.
    Parameters
    in DOMString rgbColor
    A string that matches <color>, which specifies the new sRGB
    The new color value.
    No Return Value
    Exceptions
    SVGException
    , code
    SVG_INVALID_VALUE_ERR: Raised if
    rgbColor does not match <color>.
    void setRGBColorICCColor(in DOMString rgbColor, in DOMString iccColor)
    one of the parameters has an invalid value.
    setRGBColorICCColor
    Modifies the color value to be the specified sRGB color with an alternate ICC color specification.
    Parameters
    in DOMString rgbColor
    A string that matches <color>, which specifies the new sRGB
    The new color value.
    in DOMString iccColor
    A string that matches XXX need icc-color grammar symbol, which specifies the
    The alternate ICC color specification.
    No Return Value
    Exceptions
    SVGException
    , code
    SVG_INVALID_VALUE_ERR
    Raised if rgbColor does not match <color> or if iccColor does not match XXX need icc-color grammar symbol
    void setColor(in unsigned short colorType, in DOMString rgbColor, in DOMString iccColor)
    Sets the color value
    : Raised if one of the parameters has an invalid value.
    setColor
    Sets the colorType as specified by the parameters. If colorType requires an RGBColor, then rgbColor must be a
    string that matches <color>
    valid RGBColor object; otherwise, rgbColor
    .
    must be null. If colorType requires an SVGICCColor, then iccColor must be a
    string that matches XXX need icc-color grammar symbol
    valid SVGICCColor object; otherwise, iccColor must be null.
    Parameters
    in unsigned short colorTypeOne of the defined constants for colorType.
    in DOMString rgbColorThe specification of an sRGB color, or null.
    in DOMString iccColorThe specification of an ICC color, or null.
    No Return Value
    Exceptions
    SVGException
    , code
    SVG_INVALID_VALUE_ERR: Raised if one of the parameters has an invalid value.
    4.3.18

    Interface SVGICCColor

    The SVGICCColor interface expresses an ICC-based color specification.


    IDL Definition
    
    interface SVGICCColor { 
               attribute DOMString      colorProfile
    
    setraises(DOMException);
    ;
                           // raises DOMException on setting
      readonly attribute SVGNumberList colors;
    };
    
    

    Attributes
    :
    DOMString colorProfile
    (DOMString)

    The name of the color profile, which is the first parameter of an ICC color specification.

    Exceptions on setting
    DOMException
    , code (
    NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
    colors
    readonlySVGNumberList
    )
    colors

    The list of color values that define this ICC color. Each color value is an arbitrary floating point number.

    4.3.19

    Interface SVGRect

    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.


    IDL Definition
    
    interface SVGRect { 
               attribute float x
    
    setraises(DOMException);
    ;
                           // raises DOMException on setting
               attribute float y
    
    setraises(DOMException);
    ;
                           // raises DOMException on setting
               attribute float width
    
    setraises(DOMException);
    ;
                           // raises DOMException on setting
               attribute float height
    
    setraises(DOMException); };
    Attributes:
    x (float)
    ;
                           // raises DOMException on setting
    };
    
    

    Attributes
    float x
    Corresponds to attribute x on the given element.
    Exceptions on setting
    DOMException
    , code
    NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
    float y
    (float)
    Corresponds to attribute y on the given element.
    Exceptions on setting
    DOMException
    , code
    NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
    float width
    (float)
    Corresponds to attribute width on the given element.
    Exceptions on setting
    DOMException
    , code
    NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
    float height
    (float)
    Corresponds to attribute height on the given element.
    Exceptions on setting
    DOMException
    , code
    NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
    4.3.20

    Interface SVGAnimatedRect

    Used for attributes of type SVGRect which can be animated.

    IDL Definition
    
    interface SVGAnimatedRect { 
      readonly attribute SVGRect baseVal;
      readonly attribute SVGRect animVal;
    };
    
    

    Attributes
    :baseVal (
    readonlySVGRect
    ) (
    baseVal
    The base value of the given attribute before applying any animations.
    animVal
    readonlySVGRect
    )
    animVal
    If the given attribute or property is being animated, contains the current animated value of the attribute or property, and both the object itself and its contents are readonly. If the given attribute or property is not currently being animated, contains the same value as 'baseVal'.
    4.3.21

    Interface SVGUnitTypes

    The SVGUnitTypes interface defines a commonly used set of constants and is a base interface used by SVGGradientElement, SVGPatternElement, SVGClipPathElement, SVGMaskElement, and SVGFilterElement.


    IDL Definition
    
    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;
    };
    
    Constants in group “Unit Types”:
    
    
    

    Definition group Unit Types
    Defined constants
    SVG_UNIT_TYPE_UNKNOWN
    (unsigned short)
    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
    (unsigned short)
    Corresponds to value
    '
    userSpaceOnUse
    '
    .
    SVG_UNIT_TYPE_OBJECTBOUNDINGBOX
    (unsigned short)
    Corresponds to value
    '
    objectBoundingBox
    '
    .
    4.3.22

    Interface SVGStylable

    The SVGStylable interface is implemented on all objects corresponding to SVG elements that can have 'style', 'class' and presentation attributes specified on them. It is thus an ancestor interface for many of the interfaces defined in this specification. interface

    IDL Definition
    
    interface SVGStylable { 
      readonly attribute SVGAnimatedString className;
      readonly attribute css::CSSStyleDeclaration style;
      
    
    css::CSSValue getPresentationAttribute ( in DOMString name );
    };
    
    

    Attributes
    :className (
    readonlySVGAnimatedString
    )
    className
    Corresponds to attribute
    '
    class
    ' (
    on the given element.
    style
    readonlycss::CSSStyleDeclaration
    )
    style
    Corresponds to attribute
    '
    style
    '
    CSSValue getPresentationAttribute(in DOMString name)
    on the given element. If the user agent does not support styling with CSS, then this attribute must always have the value of null.
    Operations:
    Methods
    getPresentationAttribute
    Returns the base (i.e., static) value of a given presentation attribute as an object of type CSSValue. The returned object is live; changes to the objects represent immediate changes to the objects to which the CSSValue is attached.
    Parameters
    in DOMString name
    The name of the
    Retrieves a "presentation attribute
    whose value is to be returned.
    Returns
    " by name.
    Return value
    css::CSSValue

    The static/base value of the given presentation attribute as a CSSValue, or

    null

    NULL if the given attribute does not have a specified value.

    4.3.23
    No Exceptions

    Interface SVGLocatable

    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.


    IDL Definition
    
    interface SVGLocatable { 
      readonly attribute SVGElement              nearestViewportElement;
      readonly attribute SVGElement              farthestViewportElement;
      
    
    SVGRect   getBBox (  );
      SVGMatrix getCTM (  );
      SVGMatrix getScreenCTM (  );
      SVGMatrix getTransformToElement ( in SVGElement element )
                      raises( SVGException );
    };
    
    

    Attributes
    :nearestViewportElement (
    readonlySVGElement
    ) (
    nearestViewportElement
    The element which established the current viewport. Often, the nearest ancestor 'svg' element. Null if the current element is the outermost 'svg' element.
    farthestViewportElement
    readonlySVGElement
    )SVGRect
    farthestViewportElement
    The farthest ancestor 'svg' element. Null if the current element is the outermost 'svg' element.
    Operations:
    Methods
    getBBox
    ()
    Returns the tight bounding box in current user space (i.e., after application of the
    '
    transform
    '
    attribute, if any) on the geometry of all contained graphics elements, exclusive of
    stroking
    stroke-width and filter effects).
    Returns
    No Parameters
    Return value
    SVGRectAn SVGRect object that defines the bounding box.
    SVGMatrix
    No Exceptions
    getCTM
    ()
    Returns the transformation matrix from current user units (i.e., after application of the
    '
    transform
    '
    attribute, if any) to the viewport coordinate system for the nearestViewportElement.
    Returns
    No Parameters
    Return value
    SVGMatrixAn SVGMatrix object that defines the CTM.
    SVGMatrix
    No Exceptions
    getScreenCTM
    ()
    Returns the transformation matrix from current user units (i.e., after application of the
    '
    transform
    '
    attribute, if any) to the parent user agent's notice of a "pixel". For display devices, ideally this represents a physical screen pixel. For other devices or environments where physical pixel sizes are not known, then an algorithm similar to the
    CSS 2
    CSS2 definition of a "pixel" can be used instead.
    Returns
    No Parameters
    Return value
    SVGMatrixAn SVGMatrix object that defines the given transformation matrix.
    SVGMatrix getTransformToElement(in SVGElement element)
    No Exceptions
    getTransformToElement
    Returns the transformation matrix from the user coordinate system on the current element (after application of the
    '
    transform
    '
    attribute, if any) to the user coordinate system on parameter element (after application of its
    '
    transform
    '
    attribute, if any).
    Parameters
    in SVGElement elementThe target element.
    Returns
    Return value
    SVGMatrixAn SVGMatrix object that defines the transformation.
    Exceptions
    SVGException
    , code
    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).
    4.3.24

    Interface SVGTransformable

    Interface SVGTransformable contains properties and methods that apply to all elements which have attribute

    '

    transform

    '

    .


    IDL Definition
    
    interface SVGTransformable : SVGLocatable { 
      readonly attribute SVGAnimatedTransformList transform;
    };
    
    

    Attributes
    :transform (
    readonlySVGAnimatedTransformList
    )
    transform
    Corresponds to attribute
    '
    transform
    '
    on the given element.
    4.3.25

    Interface SVGTests

    Interface SVGTests defines an interface which applies to all elements which have attributes

    '

    requiredFeatures

    '

    ,

    '

    requiredExtensions

    '

    and

    '

    systemLanguage

    '

    .


    IDL Definition
    
    interface SVGTests { 
      readonly attribute SVGStringList requiredFeatures;
      readonly attribute SVGStringList requiredExtensions;
      readonly attribute SVGStringList systemLanguage;
      
    
    boolean hasExtension ( in DOMString extension );
    };
    
    

    Attributes
    :requiredFeatures (
    readonlySVGStringList
    )
    requiredFeatures
    Corresponds to attribute
    '
    requiredFeatures
    ' (
    on the given element.
    requiredExtensions
    readonlySVGStringList
    )
    requiredExtensions
    Corresponds to attribute
    '
    requiredExtensions
    ' (
    on the given element.
    systemLanguage
    readonlySVGStringList
    )
    systemLanguage
    Corresponds to attribute
    '
    systemLanguage
    '
    boolean hasExtension(in DOMString extension)
    on the given element.
    Operations:
    Methods
    hasExtension
    Returns true if the user agent supports the given extension, specified by a URI.
    Parameters
    in DOMString extensionThe name of the extension, expressed as a URI.
    Returns
    Return value
    booleanTrue or false, depending on whether the given extension is supported.
    4.3.26
    No Exceptions

    Interface SVGLangSpace

    Interface SVGLangSpace defines an interface which applies to all elements which have attributes

    '

    xml:lang

    '

    and

    '

    xml:space

    '

    .


    IDL Definition
    
    interface SVGLangSpace { 
               attribute DOMString xmllang
    
    setraises(DOMException);
    ;
                           // raises DOMException on setting
               attribute DOMString xmlspace
    
    setraises(DOMException); };
    Attributes:
    xmllang (DOMString)
    Corresponds to attribute 'xml:lang'
    ;
                           // raises DOMException on setting
    };
    
    

    Attributes
    DOMString xmllang
    Corresponds to attribute xml:lang on the given element.
    Exceptions on setting
    DOMException
    , code
    NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
    DOMString xmlspace
    (DOMString)
    Corresponds to attribute
    '
    xml:space
    '
    on the given element.
    Exceptions on setting
    DOMException
    , code
    NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
    4.3.27

    Interface SVGExternalResourcesRequired

    Interface SVGExternalResourcesRequired defines an interface which applies to all elements where this element or one of its descendants can reference an external resource.


    IDL Definition
    
    interface SVGExternalResourcesRequired { 
      readonly attribute SVGAnimatedBoolean externalResourcesRequired;
    };
    
    

    Attributes
    :externalResourcesRequired (
    readonlySVGAnimatedBoolean
    )
    externalResourcesRequired
    Corresponds to attribute
    '
    externalResourcesRequired
    '
    on the given element. Note that the SVG DOM defines the attribute
    '
    externalResourcesRequired
    '
    as being of type SVGAnimatedBoolean, whereas the SVG language definition says that
    '
    externalResourcesRequired
    '
    is not animated. Because the SVG language definition states that
    '
    externalResourcesRequired
    '
    cannot be animated, the animVal will always be the same as the baseVal.
    4.3.28

    Interface SVGFitToViewBox

    Interface SVGFitToViewBox defines DOM attributes that apply to elements which have XML attributes

    '

    viewBox

    '

    and

    '

    preserveAspectRatio

    '

    .


    IDL Definition
    
    interface SVGFitToViewBox { 
      readonly attribute SVGAnimatedRect                viewBox;
      readonly attribute SVGAnimatedPreserveAspectRatio preserveAspectRatio;
    };
    
    

    Attributes
    :viewBox (
    readonlySVGAnimatedRect
    )
    viewBox
    Corresponds to attribute
    '
    viewBox
    ' (
    on the given element.
    preserveAspectRatio
    readonlySVGAnimatedPreserveAspectRatio
    )
    preserveAspectRatio
    Corresponds to attribute
    '
    preserveAspectRatio
    '
    on the given element.
    4.3.29

    Interface SVGZoomAndPan

    The SVGZoomAndPan interface defines attribute "zoomAndPan" and associated constants.

    IDL Definition
    
    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
    
    setraises(DOMException); };
    Constants in group “Zoom and Pan Types”:
    ;
                           // raises DOMException on setting
    };
    
    

    Definition group Zoom and Pan Types
    Defined constants
    SVG_ZOOMANDPAN_UNKNOWN
    (unsigned short)
    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
    (unsigned short)
    Corresponds to value
    '
    disable
    '
    .
    SVG_ZOOMANDPAN_MAGNIFY
    (unsigned short)
    Corresponds to value
    '
    magnify
    '
    .
    Attributes
    :zoomAndPan (
    unsigned short
    )
    zoomAndPan
    Corresponds to attribute
    '
    zoomAndPan
    '
    on the given element. The value must be one of the
    SVG_ZOOMANDPAN_* constants defined on this interface
    zoom and pan constants specified above.
    Exceptions on setting
    DOMException
    , code
    NO_MODIFICATION_ALLOWED_ERR: Raised on an attempt to change the value of a readonly attribute.
    4.3.30

    Interface SVGViewSpec

    The interface corresponds to an SVG View Specification.


    IDL Definition
    
    interface SVGViewSpec : 
    
    SVGZoomAndPan,
    
                    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;
    };
    
    

    Attributes
    :transform (
    readonlySVGTransformList
    ) (
    transform
    Corresponds to the transform setting on the SVG View Specification.
    viewTarget
    readonlySVGElement
    ) (
    viewTarget
    Corresponds to the viewTarget setting on the SVG View Specification.
    viewBoxString
    readonlyDOMString
    ) (
    viewBoxString
    Corresponds to the viewBox setting on the SVG View Specification.
    preserveAspectRatioString
    readonlyDOMString
    ) (
    preserveAspectRatioString
    Corresponds to the preserveAspectRatio setting on the SVG View Specification.
    transformString
    readonlyDOMString
    ) (
    transformString
    Corresponds to the transform setting on the SVG View Specification.
    viewTargetString
    readonlyDOMString
    )
    viewTargetString
    Corresponds to the viewTarget setting on the SVG View Specification.
    4.3.31

    Interface SVGURIReference

    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.


    IDL Definition
    
    interface SVGURIReference { 
      readonly attribute SVGAnimatedString href;
    };
    
    

    Attributes
    :href (
    readonlySVGAnimatedString
    )
    href
    Corresponds to attribute
    '
    xlink:href
    '
    on the given element.
    4.3.32

    Interface SVGCSSRule

    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.


    IDL Definition
    
    interface SVGCSSRule : css::CSSRule { 
      // Additional CSS RuleType to support ICC color specifications
      const unsigned short COLOR_PROFILE_RULE = 7;
    };
    
    Constants:
    
    
    

    Definition group Additional CSS RuleType to support ICC color specifications
    Defined constants
    COLOR_PROFILE_RULE
    (unsigned short)
    The rule is an @color-profile.
    4.3.33

    Interface SVGRenderingIntent

    The SVGRenderingIntent interface defines the enumerated list of possible values for 'rendering-intent' attributes or descriptors.


    IDL Definition
    
    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;
    };
    
    Constants in
    
    
    

    Definition group
    “Rendering Intent Types”:
    Rendering Intent Types
    Defined constants
    RENDERING_INTENT_UNKNOWN
    (unsigned short)
    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
    (unsigned short)
    Corresponds to a value of
    '
    auto
    '
    .
    RENDERING_INTENT_PERCEPTUAL
    (unsigned short)
    Corresponds to a value of
    '
    perceptual
    '
    .
    RENDERING_INTENT_RELATIVE_COLORIMETRIC
    (unsigned short)
    Corresponds to a value of
    '
    relative-colorimetric
    '
    .
    RENDERING_INTENT_SATURATION
    (unsigned short)
    Corresponds to a value of
    '
    saturation
    '
    .
    RENDERING_INTENT_ABSOLUTE_COLORIMETRIC
    (unsigned short)
    Corresponds to a value of
    '
    absolute-colorimetric
    '. SVG 1.1 (Second Edition) – 16 May 2009
    .