<?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>23985</bug_id>
          
          <creation_ts>2013-12-03 16:59:28 +0000</creation_ts>
          <short_desc>drawCustomFocusRing and color scheme</short_desc>
          <delta_ts>2015-06-16 20:38:03 +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>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>a11y_canvas</keywords>
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Philippe Le Hegaret">plh</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <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>97065</commentid>
    <comment_count>0</comment_count>
    <who name="Philippe Le Hegaret">plh</who>
    <bug_when>2013-12-03 16:59:28 +0000</bug_when>
    <thetext>[[
a canvas can contain absolutely anything. It might contain a wild and crazy color palette. Only the canvas author knows what focus ring is going to be visible on top of that canvas. If the canvas is white text on a black background, then a dark-colored focus ring is going to be practically invisible, and vice versa.

It just doesn&apos;t make any sense to me that we&apos;re providing an API that says,
if you want to draw your own focus ring, use this - BUT, under some
circumstances we&apos;re going to tell you not to draw it and the browser or
operating system is going to draw it for you, even though the browser has
no idea what colors are on your canvas and what type of focus ring would be
visible against it.

If the author wants to draw their own focus ring, it&apos;s probably for a good
reason. We should let them.

We may also want to give web authors visibility into the system color
palette so they can adjust the entire canvas - and not just focus rings -
for high contrast mode. But that&apos;s out of the scope of this discussion.
]]
http://lists.w3.org/Archives/Public/public-whatwg-archive/2013Oct/0035.html

[[
The issue is when the application wants to draw its own focus ring - should
the system sometimes override that and draw its own focus ring instead?
That&apos;s the argument I don&apos;t buy.

Respecting the system focus ring color but ignoring the rest of the system
palette makes no sense. Suppose the user has chosen white-on-black text
with a yellow focus ring. The canvas normally draws a black-on-white GUI
with red focus rings that are really easy to see. If the canvas calls
drawCustomFocusRing and the system draws its yellow focus ring instead, it
will actually be worse. So drawing the custom focus ring, in the absence of
the rest of the information about the system palette, is not necessarily an
improvement at all.

I think this feature was proposed with the best of intentions by people who
misinterpreted how Windows system colors and styles work, and didn&apos;t think
through all of the implications.

I am totally in favor of trying to provide a better experience for users
who want a high-contrast theme and custom focus rings - I just don&apos;t think
this API is the way to achieve that goal, and I think it would actually
make things worse if user agents implemented it as specified.

Perhaps this shouldn&apos;t even be solved as part of canvas. Maybe we should
add web apis to indicate that the user prefers a custom color scheme that
could be used for rendering the whole page, not just canvas.
]]
http://lists.w3.org/Archives/Public/public-whatwg-archive/2013Oct/0203.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97080</commentid>
    <comment_count>1</comment_count>
    <who name="Jay Munro">jaymunro</who>
    <bug_when>2013-12-03 21:30:27 +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>97128</commentid>
    <comment_count>2</comment_count>
    <who name="Rich Schwerdtfeger">schwer</who>
    <bug_when>2013-12-04 15:03:10 +0000</bug_when>
    <thetext>I think everyone agrees this should be moved to L2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97155</commentid>
    <comment_count>3</comment_count>
    <who name="Jay Munro">jaymunro</who>
    <bug_when>2013-12-04 19:48:46 +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>98096</commentid>
    <comment_count>4</comment_count>
    <who name="Jay Munro">jaymunro</who>
    <bug_when>2014-01-07 17:28:43 +0000</bug_when>
    <thetext>Per A11y/Canvas task force, moving to Canvas Context 2D Level 2 for more work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121124</commentid>
    <comment_count>5</comment_count>
    <who name="Philippe Le Hegaret">plh</who>
    <bug_when>2015-06-16 20:27:50 +0000</bug_when>
    <thetext>Moved to L1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121131</commentid>
    <comment_count>6</comment_count>
    <who name="Philippe Le Hegaret">plh</who>
    <bug_when>2015-06-16 20:38:03 +0000</bug_when>
    <thetext>We only have drawFocusIfNeeded now, so no longer relevant.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>