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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>105355</bug_id>
          
          <creation_ts>2012-12-18 15:13:46 -0800</creation_ts>
          <short_desc>`cursor` value ignored for canvas:active whose siblings are or contain text nodes</short_desc>
          <delta_ts>2014-01-28 10:37:29 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Canvas</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Andy E">andyearnshaw</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bethfreeman</cc>
    
    <cc>kandalkar.abhijeet58</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>794105</commentid>
    <comment_count>0</comment_count>
    <who name="Andy E">andyearnshaw</who>
    <bug_when>2012-12-18 15:13:46 -0800</bug_when>
    <thetext>A small bug that was brought to my attention recently.  When using the `:active` pseudo-class to change the mouse cursor for a canvas element, the cursor will change to the value specified by the `cursor` style while the mouse is pressed over the element.  However, if one or more siblings contain text, the value of `cursor` is overridden and the text selection cursor is shown instead (indicating a value of &quot;text&quot;).

The bug manifests whether the siblings follow or precede the &lt;canvas&gt; element, and even when the TextNode is nested several layers (haven&apos;t tested large depths).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>794107</commentid>
    <comment_count>1</comment_count>
      <attachid>180043</attachid>
    <who name="Andy E">andyearnshaw</who>
    <bug_when>2012-12-18 15:14:54 -0800</bug_when>
    <thetext>Created attachment 180043
Test case

Hold the mouse down over the canvas.  The cursor should remain w-resize, but changes to text.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>863140</commentid>
    <comment_count>2</comment_count>
    <who name="Elisabeth">bethfreeman</who>
    <bug_when>2013-03-25 16:23:50 -0700</bug_when>
    <thetext>I can confirm this bug; I&apos;ve tested on Firefox, Safari and Chrome, and Safari and Chrome exhibit the behavior described by Andy.

canvas {
    /* other properties here */
    cursor: crosshair;
}
canvas.dragging, canvas:active, canvas:focus {
    cursor: crosshair;
}

During the dragging motion, the cursor changes to the text selection cursor despite the CSS properties (shown) defined on the canvas.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>945522</commentid>
    <comment_count>3</comment_count>
    <who name="Abhijeet Kandalkar">kandalkar.abhijeet58</who>
    <bug_when>2013-10-31 08:25:54 -0700</bug_when>
    <thetext>I tried on webkit r158108 to reproduce the bug, but couldn&apos;t. Could you please verify it still exist or not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>972823</commentid>
    <comment_count>4</comment_count>
    <who name="Andy E">andyearnshaw</who>
    <bug_when>2014-01-28 00:36:44 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; I tried on webkit r158108 to reproduce the bug, but couldn&apos;t. Could you please verify it still exist or not.

It looks like the bug has been fixed, not sure exactly when this happened, though.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>180043</attachid>
            <date>2012-12-18 15:14:54 -0800</date>
            <delta_ts>2012-12-18 15:14:54 -0800</delta_ts>
            <desc>Test case</desc>
            <filename>webkitcanvascursorbug.html</filename>
            <type>text/html</type>
            <size>349</size>
            <attacher name="Andy E">andyearnshaw</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgogIDxoZWFkPgogICAgPHN0eWxlIHR5cGU9dGV4dC9jc3M+
CiAgICAgICAgY2FudmFzIHsKICAgICAgICAgICAgY3Vyc29yOiB3LXJlc2l6ZTsKICAgICAgICAg
ICAgYmFja2dyb3VuZDpncmF5OwogICAgICAgIH0KICAgICAgICBjYW52YXM6YWN0aXZlLCBjYW52
YXM6Zm9jdXMgewogICAgICAgICAgICBjdXJzb3I6IHctcmVzaXplCiAgICAgICAgfQogICAgPC9z
dHlsZT4KICA8L2hlYWQ+CiAgPGJvZHk+CiAgICA8ZGl2PgogICAgICA8c3Bhbj5oZWxsbyB3b3Js
ZDwvc3Bhbj4KICAgICAgPGNhbnZhcz48L2NhbnZhcz4KICAgICAgPC9kaXY+CiAgPC9ib2R5Pgo8
L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>