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

Re: [whatwg] Outline style to use for drawSystemFocusRing

From: Rik Cabanier <cabanier@gmail.com>
Date: Mon, 29 Jul 2013 19:51:31 -0700
Message-ID: <CAGN7qDAjRPOQ25gQT+BY+sp8Y503_9KxTa1j2aZSGYU-9BmBVA@mail.gmail.com>
To: Ian Hickson <ian@hixie.ch>
Cc: whatwg@lists.whatwg.org, Dominic Mazzoni <dmazzoni@google.com>
On Mon, Jul 29, 2013 at 5:26 PM, Ian Hickson <ian@hixie.ch> wrote:

> 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.

I see. So the user agent can decided if it closes the path, use end caps,
round joins, etc.
Maybe the spec should be more specific and say that nothing in the graphics
state (except clipping) should affect the focus ring.

> > 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.

Why not the style of the element? If the child element has a class of
'button' and the CSS has

button:focus {



Shouldn't the focus be in red?

> See also this recent discussion:
> http://lists.w3.org/Archives/Public/public-whatwg-archive/2013Jul/0345.html

Yes, we're still in that thread :-)
Received on Tuesday, 30 July 2013 02:51:55 UTC

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