[whatwg] Outline style to use for drawSystemFocusRing
Ian Hickson
ian at hixie.ch
Mon Jul 29 17:26:38 PDT 2013
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. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg
mailing list