W3C home > Mailing lists > Public > www-svg@w3.org > June 2003

animating CSS vs XML attributes

From: Sigurd Lerstad <sigler@bredband.no>
Date: Sat, 7 Jun 2003 21:41:49 +0200
Message-ID: <040201c32d2c$d6587c40$471273d5@mmstudio>
To: <www-svg@w3.org>


I asked this question before, but didn't get an answer... so here goes


Referring to the SVG 1.1 test suite, the first animation test

The test has <animate attributeName="height" .... >

From SVG Spec on animation and choosing between CSS and XML attribute

"auto" (or when it's not specified, as is the case for the test suite)
The implementation should match the attributeName to an attribute for the
target element. The implementation must first search through the list of CSS
properties for a matching property name, and if none is found, search the
default XML namespace for the element.

So the correct behavior for the suite is to search through the CSS
properties first.

This is okay for SVG only implementations, since there's no 'height' CSS
property defined in SVG, but it just so happens that my implementation also
deals with XHTML, so it supports height as a CSS property.

How should I deal with this? Is it an oversight in the test suite? Or should
I only look for SVG properties when the <animate> element is in the SVG


Sigurd Lerstad
Received on Saturday, 7 June 2003 15:42:14 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:56 UTC