Re: [whatwg] Outline style to use for drawSystemFocusRing

On Mon, 29 Jul 2013, Rik Cabanier wrote:
> >
> > The idea is it's supposed to be the system style (hence the name of 
> > the method, draw _system_ focus ring), and that if the authors wants a 
> > special style, they use drawCustomFocusRing() and if it returns true 
> > they draw it themselves (using strokeStyle and stroke(), or whatever).
> >
> > There's an example in the spec -- search for "couple of checkboxes".
> 
> That example doesn't show how the focus rings are supposed to render. 
> The spec says:
> 
> ... draws a focus ring *around *the current default path or the given path
> ...

Note that that text is non-normative. There's a big box to that effect 
just above the text itself.


> and:
> 
> ... draw a focus ring of the appropriate style along the intended path...

That one is normative.


> Which way should it be drawn?

The way the normative one says it is to be drawn.


> It seems that the focus ring should be around the path and drawn in 
> accordance to the browser's algorithm of focus regions.

Not really should what you're asking. Can you elaborate?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Monday, 29 July 2013 21:48:41 UTC