Advertisement
Guest User

Untitled

a guest
Feb 13th, 2012
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.22 KB | None | 0 0
  1. ==Syntax for SVG 'transform' attribute==
  2.  
  3. 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.
  4.  
  5. ===Transformation Function List===
  6. 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.
  7.  
  8. ===Functional Notations===
  9. 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.
  10.  
  11. ===Data Types===
  12. 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:
  13.  
  14. ====The '<translation-value>', '<length>' unit type====
  15. 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].
  16.  
  17. ====The '<angle>', '<x-angle>' and '<y-angle>' unit type====
  18. 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].
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement