This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
What is expected from drawSystemFocusRing if the path is empty, e.g. [[ var ctx = canvas.getContext("2D"); ctx.beginPath(); myInput.focus(); ctx.drawSystemFocusRing(myInput); ]]
Reassigning to Canvas 2D Context Level 2 since drawSystemFocusRing and drawCustomFocusRing are at risk for CR.
There is always a default path: 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. I am trying to understand the error condition you are getting at.
My example has an empty path. Unless I'm misreading the specification, the default path doesn't enter into the equation here. beginPath() was invoked and nothing has been added into the path. You may be suggesting that, if the path is empty, then the previous intended path in the context is used.
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.
If the path was empty, there isn't a path to act on at this point, though the intent is there with beginPath(). The issue appears to be whether to use the last path created before beginPath() was called? I would expect it to just do nothing, and treat it as a bug in code if an empty path was created.
> I would expect it to just do nothing, and treat it as a bug in code if an > empty path was created. That would be my expectation as well and a clarification in the specification would be appropriate imho.
Updated the spec to include a new first step stating that if the current path had zero subpaths, then abort the steps.
Based on Canvas SubGroup discussion, http://www.w3.org/2014/01/20-html-a11y-minutes.html, we have agreed to close this bug as the processing model step 1 resolves this issue.