W3C home > Mailing lists > Public > www-style@w3.org > July 2005

Re: [css3-values] attr() function

From: David Woolley <david@djwhome.demon.co.uk>
Date: Sun, 31 Jul 2005 12:20:17 +0100 (BST)
Message-Id: <200507311120.j6VBKIF00725@djwhome.demon.co.uk>
To: www-style@w3.org

> If introduced as global value the attr() function should apply to every property
> and to every language that has notion of attributes, in my opinion. Note that
> theoretically HTML UAs might reject <p color="red"> because it is not valid,
> but if they do not it should be supported as expected.

There is ambiguity as to whether the value is a string or a lexical 
value.  In the latter case, as in this example, it requires lexical
scanning at a late stage.

> <color> might be a problem though as colors are often specified as '000000'
> which is not valid and should be rejected per CSS 2.1. It might be a good thing

I'm not sure why such bad practices should be encouraged.  If the colour
is being mis-specified, the author is unlikely to be providing a valid
style sheet.  Even if the correct syntax is used, it only encourages
presentational HTML.
Received on Sunday, 31 July 2005 11:20:26 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:19 UTC