[css3-values] implied attr() types

Hi,

  http://www.w3.org/TR/2006/WD-css3-values-20060919 section 3.7.1 notes:

  Ideally, it shouldn't be necessary to specify the type if it is
  obvious. For example, this should be valid: "background-image:
  attr(href);". This could be described as: If the property only accepts
  one type of value (aside from 'inherit' and 'initial'), that type is
  implied. 

There is no obvious result for the following and the proposed definition
would not actually have the desired effect either:

  <foo href='none' style='background-image:attr(href)'>

Such a definition would also imply that we would be unable to extend the
definition of a property to accept new types of values as that would po-
tentially break existing style sheets. If we define such auto typing, we
should define for each property which type attr defaults to. I do not
think this feature is necessary at all though.

regards,
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

Received on Tuesday, 2 January 2007 02:47:14 UTC