<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>8210</bug_id>
          
          <creation_ts>2009-11-05 23:56:04 +0000</creation_ts>
          <short_desc>Add drawFocusRing(x,y,w,h,element) which, if element is focused, draws a system focus ring at x,y,w,h.</short_desc>
          <delta_ts>2010-10-05 12:59:07 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>pre-LC1 HTML Canvas 2D Context (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#canvasrenderingcontext2d</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>NE</keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>LC</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>vladimir</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>29373</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2009-11-05 23:56:04 +0000</bug_when>
    <thetext>Section: http://www.whatwg.org/specs/web-apps/current-work/#canvasrenderingcontext2d

Comment:
Add drawFocusRing(x,y,w,h,element) which, if element is focused, draws a system focus ring at x,y,w,h.

Posted from: 72.254.11.163</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29386</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2009-11-06 11:42:22 +0000</bug_when>
    <thetext>What if you want the focus ring to have a non-rectangular shape? What if the shape is constantly moving around?

Will anyone even want system focus ring in canvas rather than rolling their own focus rings in canvas?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29396</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2009-11-06 17:05:47 +0000</bug_when>
    <thetext>They can&apos;t draw their own — there&apos;d be no way to notify the OS of where the focus ring is (required for accessibility assistive tools to move the magnification around, etc), and they wouldn&apos;t be able to use the OS-default rendering for focus.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30421</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-01-05 01:14:32 +0000</bug_when>
    <thetext>Seems like the requirements are:
   1. ability to draw an OS focus ring around a path
   2. ability to draw a custom focus ring if the OS focus style isn&apos;t needed
   3. ability to specify where the caret is, for magnification tracking
   4. design that encourages the author to keep an element in the DOM focused, so that ATs can expose the state
   5. no reliance on CSS, since CSS is optional and we don&apos;t want the accessibility story to fall apart when styles are absent</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30422</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-01-05 02:53:46 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: see diff given below
Rationale: Concurred with reporter&apos;s comments.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30423</commentid>
    <comment_count>5</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-01-05 02:54:45 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r4465.
Check-in comment: drawFocusRing() support
http://html5.org/tools/web-apps-tracker?from=4464&amp;to=4465
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31151</commentid>
    <comment_count>6</comment_count>
    <who name="Vladimir Vukicevic (Mozilla)">vladimir</who>
    <bug_when>2010-01-20 18:55:43 +0000</bug_when>
    <thetext>(Sorry -- first I&apos;ve seen this, has no mention of canvas anywhere so my filters didn&apos;t catch it.)

There&apos;s very little rationale for the original request, though Hixie identifies a couple of possible needs.  But, I don&apos;t think that a method on the 2D context is the best place for this -- it&apos;s a pretty odd thing to stick onto the 2D rendering context which otherwise has no user interaction.  This seems like it would be more useful as a toplevel Document API that overlays a focus ring at a specific location on the page, or something of that nature.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>