W3C home > Mailing lists > Public > public-svg-wg@w3.org > April to June 2009

Allowable presentation attributes

From: Cameron McCormack <cam@mcc.id.au>
Date: Fri, 17 Apr 2009 15:53:54 +1000
To: public-svg-wg@w3.org
Message-ID: <20090417055354.GF9802@arc.mcc.id.au>
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

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.



Cameron McCormack ≝ http://mcc.id.au/
Received on Friday, 17 April 2009 05:54:51 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:29:41 UTC