W3C home > Mailing lists > Public > www-style@w3.org > October 2004

Re: Another two CSS3 ideas

From: Christoph Päper <christoph.paeper@tu-clausthal.de>
Date: Wed, 20 Oct 2004 19:59:29 +0200
To: www-style@w3.org
Message-ID: <opsf6j9ff5ofh7fl@crissov>

*Leszek* <leszek@controtex.com>:
> How about a property for everything called 'default',

'reset', 'system', 'useragent' or something. 'default' sounds to me too  
much like 'initial', which is the default value from the spec and not from  
the UA stylesheet for a specific document type.

> Although I'm not sure exactly how this would work with the cascade,

Well, the UA already has to know the source of the stylesheets (UA,  
author, user), so it should at least be able to find the respective value  

> I'm sure it would be very useful.

In user stylesheets at least.

> Also, a nice selector to have would be a noclass selector, i.e
> "ul.(noclass)",

That would have to be realised with a pseudo-class (funny, eh?) like  
"ul:noclass" (and probably ':noid' respectively).
In some (AFAIK wrong) implementations "ul[class='']" might work already.
Another, more general approach would be an attribute negator, i.e.  
something like "ul[!class]".

For now overwriting works more or less:

   ul        {foo: bar} /* no class */
   ul[class] {foo: baz} /* any class */

The specifity differs, though.
Received on Wednesday, 20 October 2004 18:00:02 UTC

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