W3C home > Mailing lists > Public > public-html@w3.org > January 2010

Re: Proposal: Canvas accessibility and a media querries approach for alternative content (Action Item 6 in the HTML Accessibility Task Force)

From: Steven Faulkner <faulkner.steve@gmail.com>
Date: Wed, 20 Jan 2010 15:46:10 +0000
Message-ID: <55687cf81001200746w570611c4q7faad46ec7657eab@mail.gmail.com>
To: Henri Sivonen <hsivonen@iki.fi>
Cc: Ian Hickson <ian@hixie.ch>, Maciej Stachowiak <mjs@apple.com>, public-canvas-api@w3.org, HTML WG <public-html@w3.org>
hi henri,
>This way, the call to drawFocusRing() can be an unconditional part of a
paint routine and the check to see if the element is focused can be done in
the UA >C++ code without the script having to make an explicit JS-to-C++
query for each element to decide whether to call drawFocusRing().
>(I retract my statement that it might make sense to imply a call to
focus(). It is a bit surprising, though, that a method called drawFoo()
actually means >drawFooIfBar().)

your use of the technical does little for my attempt to understand what you
are talking about.

"the call to drawFocusRing() can be an unconditional part of a paint routine
and the check to see if the element is focused can be done in the UA >C++
code"

why would this not be the case if the result of the check is that the
element isn't focused it is to be given focus?


regards
stevef




2010/1/20 Henri Sivonen <hsivonen@iki.fi>

> On Jan 20, 2010, at 16:58, Steven Faulkner wrote:
>
> > currently the spec [
> http://dev.w3.org/html5/2dcontext/Overview.html#focus-management] says:
> >>  If element is not focused or is not a descendant of the element with
> whose context the method is associated, then return false and abort these
> steps.
>
> The spec says why it is designed like this:
> "This method only draws the focus ring if the element is focused, so that
> it can simply be called whenever drawing the element, without checking
> whether the element is focused or not first."
>
> This way, the call to drawFocusRing() can be an unconditional part of a
> paint routine and the check to see if the element is focused can be done in
> the UA C++ code without the script having to make an explicit JS-to-C++
> query for each element to decide whether to call drawFocusRing().
>
> (I retract my statement that it might make sense to imply a call to
> focus(). It is a bit surprising, though, that a method called drawFoo()
> actually means drawFooIfBar().)
>
> --
>  Henri Sivonen
> hsivonen@iki.fi
> http://hsivonen.iki.fi/
>
>
>


-- 
with regards

Steve Faulkner
Technical Director - TPG Europe
Director - Web Accessibility Tools Consortium

www.paciellogroup.com | www.wat-c.org
Web Accessibility Toolbar -
http://www.paciellogroup.com/resources/wat-ie-about.html
Received on Wednesday, 20 January 2010 15:47:10 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:12 UTC