W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2013

Re: [whatwg] Outline style to use for drawSystemFocusRing

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 30 Jul 2013 00:26:38 +0000 (UTC)
To: Rik Cabanier <cabanier@gmail.com>
Message-ID: <alpine.DEB.2.00.1307300020510.27623@ps20323.dreamhostps.com>
Cc: whatwg@lists.whatwg.org, Dominic Mazzoni <dmazzoni@google.com>
On Mon, 29 Jul 2013, Rik Cabanier wrote:
> 
> Does that mean it should be stroked along the path?

That depends on the platform. Some platforms render the focus as a 
highlight, some as a dotted line around the exact path of the control, 
some as a box around the bounding box of the focused control, etc.

The idea of this API is to let the user agent render the focus ring 
however it is appropriate for the platform.


> How is the focus ring usually calculated? Does the UA know about the 
> shape of the focused objects and then draws a box around it?

It depends on the platform.


> As for the color of the focus ring, shouldn't it come from the ':focus' 
> style of the element that is passed in?

It should come from the platform. See also this recent discussion:

   http://lists.w3.org/Archives/Public/public-whatwg-archive/2013Jul/0345.html

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 30 July 2013 00:27:02 UTC

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