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

Re: Selectors Tests

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Wed, 29 Oct 2008 22:24:05 +0100
Message-ID: <4908D475.5060701@lachy.id.au>
To: fantasai <fantasai.lists@inkedblade.net>
CC: www-style <www-style@w3.org>

-public-css-testsuite
+www-style

fantasai wrote:
> Lachlan Hunt wrote:
>> http://lachy.id.au/dev/css/tests/selectors/pseudo-classes/ui/
> 
> Interesting. I'm not convinced that :enabled and :disabled shouldn't 
> match <input type="hidden">. Konqueror and Mozilla both make them 
> match, so I'd like to check with the CSSWG if that's really the 
> interpretation we want before deciding whether to accept your tests. 

Opera currently also makes them match, but WebKit doesn't.  However, the 
Selectors spec states that:

   Most elements will be neither enabled nor disabled. An element is
   enabled if the user can either activate it or transfer the focus to
   it. An element is disabled if it could be enabled, but the user cannot
   presently activate it or transfer focus to it.

Since a hidden input cannot be activated or have focus transferred to 
it, my understanding is that they shouldn't match, which makes WebKit's 
behaviour correct, and Opera, Firefox and Konqueror all incorrect.  But 
if the intention is for these pseudo classes to match hidden inputs, 
then please fix the spec.

> AFAICT WF2 requires them to match, but Selectors' wording implies 
> that they don't.

The Web Forms 2 spec is obsolete now that forms have been integrated 
into HTML5.

-- 
Lachlan Hunt - Opera Software
http://lachy.id.au/
http://www.opera.com/
Received on Wednesday, 29 October 2008 21:24:58 GMT

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