<?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>27263</bug_id>
          
          <creation_ts>2014-11-07 01:41:29 +0000</creation_ts>
          <short_desc>addHitRegion should inform the user of the new location for the fallback element based on the associated hit region</short_desc>
          <delta_ts>2014-12-01 03:13:11 +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>CR HTML Canvas 2D Context</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mark Sadecki">mark.sadecki+w3c</reporter>
          <assigned_to name="Rik Cabanier">cabanier</assigned_to>
          <cc>cabanier</cc>
    
    <cc>public-html-admin</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>114632</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Sadecki">mark.sadecki+w3c</who>
    <bug_when>2014-11-07 01:41:29 +0000</bug_when>
    <thetext>It was originally decided [1] that calling addHitRegion() should update the location information for the fallback element with the location of its corresponding hit region:

&gt; RS: updating location information in Accessibility APIs
&gt;
&gt; &lt;richardschwerdtfeger&gt; Updating the accessibility API of the
&gt; location of fallback elements that are representative of the
&gt; corresponding hit region location.

However, this text was never added to the spec.  The oversight was pointed out and discussed here [2]

I propose the following step be added after step 12 in addHitRegion() [3]

13. If the arguments object&apos;s control member is not null, inform the user of the location of the region representing the control given by the control member&apos;s value for this canvas element, if any. The full location of the corresponding fallback element, pertaining to the control, as represented by the region is passed to the accessibility API, if supported. 

Optionally, we could add non-normative text similar to that which is included with drawFocusIfNeeded():

Note: &quot;Inform the user&quot;, as used in this section, could mean calling a system accessibility API, which would notify assistive technologies such as magnification tools. The methods above allow the user agent to report the bounding box of the path as the bounds of the element passed as an argument.

[1] http://lists.w3.org/Archives/Public/public-canvas-api/2014AprJun/0039.html
[2] http://lists.w3.org/Archives/Public/public-canvas-api/2014JulSep/0033.html
[3] http://www.w3.org/TR/2dcontext/#dom-context-2d-addhitregion</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115716</commentid>
    <comment_count>1</comment_count>
    <who name="rcabanie">cabanier</who>
    <bug_when>2014-12-01 03:13:11 +0000</bug_when>
    <thetext>Submitted proposed fix to the canvas 2d CR branch:
https://github.com/w3c/html/commit/16d80fcf5351050a42699f29319b84977643b219</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>