<?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>23986</bug_id>
          
          <creation_ts>2013-12-03 18:09:04 +0000</creation_ts>
          <short_desc>Current default path</short_desc>
          <delta_ts>2014-01-20 23:45:29 +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>Windows NT</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>a11y_canvas</keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Philippe Le Hegaret">plh</reporter>
          <assigned_to name="Jay Munro">jaymunro</assigned_to>
          <cc>jmann</cc>
    
    <cc>mark.sadecki+w3c</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>schwer</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>97066</commentid>
    <comment_count>0</comment_count>
    <who name="Philippe Le Hegaret">plh</who>
    <bug_when>2013-12-03 18:09:04 +0000</bug_when>
    <thetext>The spec says &quot;the context always has a current default path.&quot; Since the definition of &quot;intended path&quot; relies on this, what&apos;s the current default path in:
[[
 var ctx = canvas.getContext(&quot;2D&quot;);
 myInput.focus();
 ctx.drawSystemFocusRing(myInput);
]]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97079</commentid>
    <comment_count>1</comment_count>
    <who name="Jay Munro">jaymunro</who>
    <bug_when>2013-12-03 21:30:08 +0000</bug_when>
    <thetext>Reassigning to Canvas 2D Context Level 2 since drawSystemFocusRing and drawCustomFocusRing are at risk for CR.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97129</commentid>
    <comment_count>2</comment_count>
    <who name="Rich Schwerdtfeger">schwer</who>
    <bug_when>2013-12-04 15:13:03 +0000</bug_when>
    <thetext>See this text in the Canvas 2D spec. :

http://www.w3.org/TR/2012/CR-2dcontext-20121217/#current-default-path

&quot;The context always has a current default path. There is only one current default path, it is not part of the drawing state. The current default path is a path, as described above.&quot;

If this text is not adequate the rest of the specification has problems.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97156</commentid>
    <comment_count>3</comment_count>
    <who name="Jay Munro">jaymunro</who>
    <bug_when>2013-12-04 19:49:21 +0000</bug_when>
    <thetext>I jumped the gun on moving to L2, there are still ongoing discussions on the focus ring methods. Moving back to CR until discussions are complete.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98367</commentid>
    <comment_count>4</comment_count>
    <who name="Philippe Le Hegaret">plh</who>
    <bug_when>2014-01-13 23:22:02 +0000</bug_when>
    <thetext>to clarify the case here, here is a more detailed code:

[[
 var myCanvas = document.createElement(&quot;canvas&quot;);
 var myInput = document.createElement(&quot;input&quot;);
 myCanvas.width = 200;
 myCanvas.height = 200;
 canvas.appendChild(myInput);
 document.body.appendChild(myCanvas);
 var ctx = canvas.getContext(&quot;2D&quot;);
 myInput.focus();
 ctx.drawSystemFocusRing(myInput);
]]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98458</commentid>
    <comment_count>5</comment_count>
    <who name="Jay Munro">jaymunro</who>
    <bug_when>2014-01-14 22:14:57 +0000</bug_when>
    <thetext>When the at-risk features were moved to Level 2, the intended path and current default path were updated. Intended path and current default path reflected the path object. Since path object was moved to Canvas 2D Context level 2, they were removed from CR. Current Path was left since any use of beginPath created the current path.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98513</commentid>
    <comment_count>6</comment_count>
    <who name="Philippe Le Hegaret">plh</who>
    <bug_when>2014-01-15 18:10:37 +0000</bug_when>
    <thetext>(In reply to Jay Munro from comment #5)
&gt; When the at-risk features were moved to Level 2, the intended path and
&gt; current default path were updated. Intended path and current default path
&gt; reflected the path object. Since path object was moved to Canvas 2D Context
&gt; level 2, they were removed from CR. Current Path was left since any use of
&gt; beginPath created the current path.

Understood, but note that in my example, I never used beginPath and I still call drawFocusIfNeeded (aka drawSystemFocusRing). This case is different of bug 23986 even the conclusion seems to be the same (ie it&apos;s a no-op).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98636</commentid>
    <comment_count>7</comment_count>
    <who name="Jay Munro">jaymunro</who>
    <bug_when>2014-01-16 17:39:20 +0000</bug_when>
    <thetext>Added step to drawFocusIfNeeded that states if current path has zero subpaths, then abort these steps.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98799</commentid>
    <comment_count>8</comment_count>
    <who name="Jatinder Mann [MSFT]">jmann</who>
    <bug_when>2014-01-20 23:45:29 +0000</bug_when>
    <thetext>Per Canvas SubGroup meeting, http://www.w3.org/2014/01/20-html-a11y-minutes.html, we have agreed to close this bug as the spec has been fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>