Allowable presentation attributes

Another difference between SVG 1.1 and SVG Tiny 1.2 is what presentation
attributes are allowed to be specified on a given element.  In 1.2T,
most stylable elements can have any presentation attribute specified on
it, even if the property won’t have any effect on that element.  For
example you could have:

  <rect width='1' height='1' stop-color='red'/>

whereas that would be invalid in SVG 1.1.

For the remaining stylable 1.2T elements, you can use presentation
attributes only for the properties designated as “media properties”,
which avoids the clash between the ‘fill’ presentation attribute and the
SMIL ‘fill’ attribute.

Is this something we also want to backport to 1.1?  I think yes, since
it makes processing presentation attributes more uniform across
elements.


And now, two quick questions about 1.2T.

Why do the <title>, <desc> and <metadata> allow the media properties to
be specified on them?  Was it because at one point we were going to
allow the ‘display’ property on them (tooltip rendering?), which didn’t
end up being allowed in the final spec?

And why does the <image> element allow only the media properties and not
all properties?  There’s no ‘fill’ attribute on <image> to clash with.

Thanks,

Cameron

-- 
Cameron McCormack ≝ http://mcc.id.au/

Received on Friday, 17 April 2009 05:54:51 UTC