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, 

Received on Sunday, 9 January 2005 04:32:21 UTC

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