- ==Syntax for SVG 'transform' attribute==
- To provide backward compatibility, the syntax of the XML attribute 'transform' differs to the syntax of the style property. Even so the syntax of the style property is still valid for the attribute and it is recommended for authors to follow the rules of CSS Values [http://www.w3.org/TR/css3-values/#functional-notation] for the attribute as well.
- ===Transformation Function List===
- The values for the 'transform' attribute consists of a list of zero or more transformation functions in the 'functional notation'. If the list of transformation functions consists of more than one transformation function, these functions are separated by either a comma (‘,’) with optional whitespace before and after the comma or one or more whitespaces. The list of transformation functions can have optional whitespaces before and after the list.
- ===Functional Notations===
- The syntax starts with the name of the function followed by optional whitespaces followed by a left parenthesis followed by optional whitespace followed by the argument(s) to the notation followed by optional whitespace followed by a right parenthesis. If a function takes more than one argument, the arguments are either separated by a comma (‘,’) with optional whitespace before and after the comma or one or more whitespaces.
- ===Data Types===
- Arguments of transformation functions consists of data types in the sense of CSS Values [http://www.w3.org/TR/css3-values/#functional-notation]. The definitions of data types in CSS Values gets enhanced as follows:
- ====The '<translation-value>', '<length>' unit type====
- A translation-value or length can be a '<number>' ''without'' a unit identifier. In this case the ''number'' gets interpreted as "user unit". A user unit in the the initial coordinate system is equivalenced to the parent environment's notion of a px unit [SVG 11 http://www.w3.org/TR/2003/REC-SVG11-20030114/coords.html#InitialCoordinateSystem].
- ====The '<angle>', '<x-angle>' and '<y-angle>' unit type====
- An angle, x-angle or y-angle can be a '<number>' ''without'' a unit identifier. In this case the ''number'' gets interpreted as degrees according to [SVG 11 http://www.w3.org/TR/SVG/coords.html#TransformAttribute].
a guest Feb 13th, 2012 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data