- From: Ian Hickson <ianh@netscape.com>
- Date: Fri, 6 Oct 2000 16:07:45 -0700 (Pacific Daylight Time)
- To: Bjoern Hoehrmann <derhoermi@gmx.net>
- cc: Jonas Sicking <sicking@bigfoot.com>, www-style@w3.org
On Fri, 6 Oct 2000, Bjoern Hoehrmann wrote: > * "Jonas Sicking" <sicking@bigfoot.com> wrote: > | 1. :default pseudo-class. > | represents the element that will be activated when the user presses default > | activate key (normally enter). > > "The :focus pseudo-class applies while an element has the focus (accepts > keyboard or mouse events, or other forms of input)." > > Why do you think this does not apply to a submit button that accepts the > keyboard event "return is pressed"? If the focus is on a text field, but hitting enter activates the submit button (typical behaviour in most UIs and certainly most popular browsers), then the button is not focussed prior to the enter key being hit (and typically not after either). However, it is the default control. Hence, :default. Does the UI draft have a way of making an element be the 'default' element? > | 2. pseudo-class inversion. > (I think i do not really understand you mean) How would you style target anchors? (In HTML, the <a> element that does not have an href attribute.) Currently, you can only do so if you style the links as well: a:link, a:visited { color: blue; } :root a { color: green; } /* root is needed to get the specificity high enough! */ This proposal adds an equivalent negative pseudo-class for every pseudo-class, so instead you could just do: a:not-link, a:not-visited { color: green; } It is difficult to think of examples on the spot, but I have often needed this for one reason or another. -- Ian Hickson )\ _. - ._.) fL Netscape, Standards Compliance QA /. `- ' ( `--' +1 650 937 6593 `- , ) - > ) \ irc.mozilla.org:Hixie _________________________ (.' \) (.' -' __________
Received on Friday, 6 October 2000 19:09:15 UTC