W3C home > Mailing lists > Public > www-style@w3.org > November 2008

Re: Selectors Tests

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 06 Nov 2008 23:52:07 -0500
Message-ID: <4913C977.6060302@mit.edu>
To: Andrew Fedoniouk <news@terrainformatica.com>
CC: fantasai <fantasai.lists@inkedblade.net>, Patrick Garies <pgaries@fastmail.us>, www-style@w3.org

Andrew Fedoniouk wrote:
>> This can't happen.
> This needs to be specified then.

It is.

> :enabled and :disabled are mutually exclusive in all domains CSS is
> aimed to serve.

They are, but you can have elements that neither applies to.

> It means that either one :enabled or :disabled is just enough for 
> practical needs.
> input:not(:enabled) { color:gray; }
> why do you need :disabled then?

How would you style all disabled controls on your web page?

   input:not(:enabled), textarea:not(:enabled), select:not(:enabled)

isn't so readable.  And if you happen to have an XHTML document with 
XForms tossed in, it's not even correct.

Received on Friday, 7 November 2008 04:52:59 UTC

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