W3C home > Mailing lists > Public > www-style@w3.org > January 2007

[css3-values] implied attr() types

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Tue, 02 Jan 2007 03:47:07 +0100
To: www-style@w3.org
Message-ID: <vkgjp29ue8thoia7grtd0ohqkf48skls3n@hive.bjoern.hoehrmann.de>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:49 GMT