W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2014

Re: [whatwg] Outline style to use for drawSystemFocusRing

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 7 Jan 2014 04:41:10 +0000 (UTC)
To: Rik Cabanier <cabanier@gmail.com>
Message-ID: <alpine.DEB.2.00.1401070435330.17322@ps20323.dreamhostps.com>
Cc: Dominic Mazzoni <dmazzoni@google.com>, "whatwg@whatwg.org" <whatwg@whatwg.org>
On Mon, 6 Jan 2014, Rik Cabanier wrote:
> 
> I think you misunderstood. The drawCustomFocusRing() and 
> drawSystemFocusRing() don't cause scrolling, it's when you focus the 
> fallback element that the browser should scroll.

Doing this would imply remembering where the control was the last time the 
focusing ring was rendered, which would cause all kinds of problems for 
authors. Since the last time the control was rendered, maybe the rendering 
stopped showing the control, or maybe when it was last rendered, the 
control was rendered just off-screen on purpose so that it could be 
animated onto the center of the screen when focused... we simply can't 
know what the author is doing.

This is why there's a separate dedicated API for scrolling. If the author 
thinks that the user will want to scroll to the control when the control 
is focused, then it's trivial to do. But we should not force this 
behaviour. That's terrible API design.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 7 January 2014 04:42:15 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:15 UTC