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

Re: [CSS3] UI element states pseudo-classes

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Sat, 08 Jan 2005 22:32:11 -0600
Message-ID: <41E0B3CB.8090100@mit.edu>
To: Laurens Holst <lholst@students.cs.uu.nl>
CC: www-style@w3.org

Laurens Holst wrote:
> About 2), removing :enabled, that would be bothersome as well. With
> :enabled you select only the elements which are enabled, and with
> :disabled you only select those which are disabled. If you'd remove
> :enabled, there would be no way to only target the enabled elements
> except by targeting them all, without pseudo-class, and then overriding
> all the properties you set in a :disabled pseudo-class. Not very
> convenient :).

Actually, if you think that would work, then :not(:disabled) would also work. 
The whole problem is that you can have elements which are neither :enabled nor 
:disabled (which would get styled as "enabled" in your proposed solution, 
incorrectly).

-Boris
Received on Sunday, 9 January 2005 04:32:21 GMT

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