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

Re: Selectors Tests

From: Brad Kemper <brkemper.comcast@gmail.com>
Date: Wed, 29 Oct 2008 23:53:28 -0700
Cc: www-style <www-style@w3.org>
Message-Id: <50FB9BDC-052C-4B63-910A-B9B5EE358F18@gmail.com>
To: Boris Zbarsky <bzbarsky@MIT.EDU>


On Oct 29, 2008, at 9:49 PM, Boris Zbarsky wrote:

> Brad Kemper wrote:
>>> So should an <input type="text" style="display: none">  
>>> match :disabled, by that reasoning?
>> Is that a purely philosophical question, or does it matter somehow?  
>> Given that it is not rendered and takes up no space, and that it  
>> will not be disabled if display changes to something other than  
>> "none", then matching or not would seem to make little or no  
>> difference.
>
> HTML:
>
>  <input type="text" style="display: none">
>  <div>What color is this text?</div>
>
> CSS:
>
>  div { color: red; }
>  input[text]:enabled + div { color: green; }
>
> What color is the text?
>
> -Boris

Ah. I see. Thanks for clearing that up.
Received on Thursday, 30 October 2008 06:54:05 GMT

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