- From: Chris Lilley <chris@w3.org>
- Date: Fri, 10 Mar 2006 12:37:14 +0100
- To: Bjoern Hoehrmann <derhoermi@gmx.net>
- Cc: "Andrew Emmons" <aemmons@opentext.com>, www-svg@w3.org
On Friday, March 10, 2006, 10:52:32 AM, Bjoern wrote: BH> * Chris Lilley wrote: >>!important, @rules, CSS comments, and suchlike are not allowed in >>attribute values, as the EBNF for those values makes very clear. BH> As I said in the original comment, it's clear for attributeType="XML", BH> it's not clear for attributeType="CSS". The attributeType is purely to allow disambiguation in the case of a name clash between a property and an attribute. It does not allow in unusual syntax for attribute values, as you seem to believe. The specification makes it very clear that this only affects the name of the property or attribute to be animated: "CSS" This specifies that the value of 'attributeName' is the name of a CSS property defined as animatable in this specification. BH> Another simple case where this BH> is different is "scientific notation", it would be allowed when the BH> target is an XML attribute, but not when the target is a CSS property, Wrong. It would indeed be allowed for a CSS property, if that CSS property took scientific notation. BH> since a value like "1e3" is not a legal property value even though it BH> would be a legal attribute value. Whether comments and such are allowed BH> in the presentation attributes isn't clear from the draft, as has been BH> discussed many times on this list. As I said above, CSS comments, @rules and other such wierdness are not allowed in attribute values. As I said above, the syntax for the from and to attributes is the same as for the presentational attributes that they are animating. This does seem abundantly clear. to = "<value>" Specifies the value for the attribute during the duration of the 'set' element. The argument value must match the attribute type. Animatable: no. Notice that it does not go on to say "And if the value of attributeType is CSS, also allow assorted other bits of syntax that would be allowed in an external CSS stylesheet" But perhaps you are misreading "must match the attribute type" as "must have different syntax depending on the value of attributeType" rather than the plain and intended meaning that the value of "to" must match the allowed values for the attribute it is animating? -- Chris Lilley mailto:chris@w3.org Chair, W3C SVG Working Group W3C Graphics Activity Lead Co-Chair, W3C Hypertext CG
Received on Friday, 10 March 2006 11:37:19 UTC