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

Re: [whatwg] Should scrollbars move focus?

From: Robert O'Callahan <robert@ocallahan.org>
Date: Thu, 1 Nov 2012 11:46:03 +1300
Message-ID: <CAOp6jLZ+JOqMngNVcXTOJf0dZ_hmCU_2b2jQ_-wJ3+gWWT14Cg@mail.gmail.com>
To: Ojan Vafai <ojan@chromium.org>
Cc: WHATWG <whatwg@whatwg.org>, Elliott Sprehn <esprehn@gmail.com>, Ian Hickson <ian@hixie.ch>
On Thu, Nov 1, 2012 at 11:16 AM, Ojan Vafai <ojan@chromium.org> wrote:

> Does anyone from Mozilla know why textarea scrollbars are special-cased in
> Gecko? Would be good to know if there is a web compatibility requirement
> here.

I don't know of one off the top of my head. I can't see how it could be a
compatibility requirement.

I think what's happening here in Gecko is that a click on a focusable
element moves focus, and a click on an element's scrollbars counts as a
click on the element. So clicking on the scrollbar of a <textarea> or
contenteditable <div> (or even a <button> containing content with a
scrollbar, if you're mad) moves focus to that element. I think this is
quite reasonable actually.

Example: http://people.mozilla.org/~roc/scrollbar-focus.html

Jesus called them together and said, “You know that the rulers of the
Gentiles lord it over them, and their high officials exercise authority
over them. Not so with you. Instead, whoever wants to become great among
you must be your servant, and whoever wants to be first must be your
slave — just
as the Son of Man did not come to be served, but to serve, and to give his
life as a ransom for many.” [Matthew 20:25-28]
Received on Wednesday, 31 October 2012 22:46:34 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:46 UTC