W3C home > Mailing lists > Public > www-style@w3.org > November 2005

Re: ::can-have-focus pseudo-class?

From: Martijn <martijn.martijn@gmail.com>
Date: Wed, 2 Nov 2005 00:18:18 +0100
Message-ID: <6c97b8b10511011518v34f8a0a9wfb1a3ba7405d89d4@mail.gmail.com>
To: www-style@w3.org

> What is the advantage of this over selecting all the elements that can
> have such a
> state?
You don't always know which elements can have such a state.

> What about cases where whether an element is focusable depends on the
> style and layout?
Sounds to me that's a potential loophole in itself.

> For example, in Gecko a random block is focusable if
> it has overflow:scroll or overflow:auto and is overflowing.  This allows
> users to tab to it and use arrow keys to scroll, which the accessibility
> people consider very important.
Well, what happens when you have div { overflow:scroll;} div:focus
You have a potential loophole here.
If Gecko can manage that, it should also handle the
:can-have-state(:focus) thing.

Received on Tuesday, 1 November 2005 23:18:23 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:21 UTC