- From: Bjoern Hoehrmann <derhoermi@gmx.net>
- Date: Sat, 7 Oct 2000 03:25:06 +0200
- To: "Ian Hickson" <ianh@netscape.com>
- Cc: <www-style@w3.org>
* "Ian Hickson" <ianh@netscape.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). The button accepts keyboard events, so it has the focus. Thats what the spec says. There is no need for a new pseudo-class. | > | 2. pseudo-class inversion. | > (I think i do not really understand you mean) | | How would you style target anchors? something like a { color: black } and a:link { color: red } or a[href] { color: red } If you get pseudo-class inversion i want to have attribute inversion like 'not equal', 'does not end with', 'has no attribute' and so on like a[!href] a[href^!"http://www.w3.org"] ... Maybe at this point we should have a more generic mechanism for inversion, maybe others want to style all classes not named "normative" and so on. regards, -- Björn Höhrmann ^ mailto:bjoern@hoehrmann.de ^ http://www.bjoernsworld.de am Badedeich 7 ° Telefon: +49(0)4667/981ASK ° http://www.websitedev.de/ 25899 Dagebüll # PGP Pub. KeyID: 0xA4357E78 # http://learn.to/quote +{i} --- Only connect! That was the whole of the sermon. -- E. M. Forster ---
Received on Friday, 6 October 2000 21:27:28 UTC