W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2005

[whatwg] [wf2] 8.1. Relation to the CSS3 User Interface module

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 20 Oct 2005 22:27:09 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0510202225020.32465@dhalsim.dreamhost.com>
On Tue, 22 Mar 2005, Anne van Kesteren wrote:
> 
> :checked - according to Selectors this applies to HTML4 elements which 
> could have a SELECTED attribute, OPTION, a descendant from the SELECT or 
> DATALIST elements, is one of them, but is not listed.

Fixed.

> :indeterminate - I suggest that the wording is changed to say that it 
> does not match any Web Forms 2 form controls as Selectors seems to 
> suggest that it does match certain HTML controls in a certain state.

Fixed.

> :default - this psuedo-class should match more than just the inital submit
> button. (I assume it also matches when that button is disabled?) For example:
> 
>  <select>
>   <option selected>foo
>   <option>bar
> 
> The OPTION element with value "foo" should match :default as it is the default
> option in that form control. (When there is a <select multiple> more options
> could match :default.)

Fixed.

> A question about this, should it also match radio buttons where the author can
> also set a default out of multiple possibilities? (For checkboxes this does
> not apply I guess.)

Apparently so, yes.

> Also, how does :default work with non form controls. Would 
> 'html:not(:default){background:lime}' really give a green background in 
> HTML documents? (But perhaps this is something for CSS3 to clarify.) 
> (This question seems to apply to other pseudo-classes as well.)

If :checked doesn't match, :not(:checked) matches, this seems unambiguous.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 20 October 2005 15:27:09 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:43 UTC