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

Re: [CSS3] UI element states pseudo-classes

From: Anne van Kesteren <fora@annevankesteren.nl>
Date: Sun, 09 Jan 2005 21:04:57 +0100
Message-ID: <41E18E69.9060307@annevankesteren.nl>
To: Andrew Fedoniouk <news@terrainformatica.com>
CC: Laurens Holst <lholst@students.cs.uu.nl>, www-style@w3.org

Andrew Fedoniouk wrote:
> There are too many "interesting" states of input elements which make
> sense to expose into CSS. For example :changed or :input-error would
> be pretty useful, right?

CSS3 UI defines :valid and :invalid[1]. Not sure why one would need
:changed though.

> But I think if we will go this way (declare each state bit as a 
> separate class) we will end up with the mess.

Why? (By the way, please differentiate between the class and
psuedo-class selectors.)

> And in general: we should avoid declaration of pseudo-classes which 
> can be applied to only some particular type of elements as CSS is 
> more or less universal language/tool.

:visited and :link were introduced in CSS 1. I do not thing having
selectors for a particular purpose are bad. They are actually quite useful.

> There are two options I can see: a) input elements should reflect 
> their states onto attributes values in runtime or b) we need to 
> invent some other notation like input[type=text][@changed] to allow 
> adding such state flags without redesigning the whole thing.

I do not understand this part. Could you elaborate?


  Anne van Kesteren
Received on Sunday, 9 January 2005 20:05:12 UTC

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