<?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>9013</bug_id>
          
          <creation_ts>2006-05-20 05:16:20 -0700</creation_ts>
          <short_desc>Let correct CSS custom cursor declarations parse</short_desc>
          <delta_ts>2006-07-18 13:02:17 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</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>
          
          <blocked>6001</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Alexey Proskuryakov">ap</assigned_to>
          <cc>rwlbuis</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>42990</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-05-20 05:16:20 -0700</bug_when>
    <thetext>Currently, WebKit would reject any compliant CSS custom cursor declaration, because it checks that there is only one value, while CSS mandates that a list of custom cursors should be followed with a named one. Even for a single value, the hot point position (as defined in CSS3) would break parsing.

The attached patch lets compliant declarations parse, but doesn&apos;t implement fallback (that&apos;s bug 6001). 

WinIE doesn&apos;t require that a named cursor should always follow custom ones, so I don&apos;t check that there is more than one value.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42991</commentid>
    <comment_count>1</comment_count>
      <attachid>8433</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-05-20 05:17:17 -0700</bug_when>
    <thetext>Created attachment 8433
proposed fix</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43033</commentid>
    <comment_count>2</comment_count>
      <attachid>8433</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-05-21 03:11:57 -0700</bug_when>
    <thetext>Comment on attachment 8433
proposed fix

Rob is working on a real implementation that will make this hack unneeded.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49611</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-07-12 22:28:37 -0700</bug_when>
    <thetext>The patch in bug 6002 isn&apos;t finished yet, and I think it would be wrong to introduce custom cursor support that only works with invalid declarations, so I&apos;m reopening this bug (proposing to land this now).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50226</commentid>
    <comment_count>4</comment_count>
      <attachid>8433</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-07-17 19:39:59 -0700</bug_when>
    <thetext>Comment on attachment 8433
proposed fix

Looks OK, although it&apos;s missing a change log entry.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50227</commentid>
    <comment_count>5</comment_count>
      <attachid>8433</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-07-17 19:41:12 -0700</bug_when>
    <thetext>Comment on attachment 8433
proposed fix

Ideally we&apos;d check that the remaining items are URIs then legal cursor names. This will allow many incorrect cursor declarations to parse too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50243</commentid>
    <comment_count>6</comment_count>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2006-07-18 00:09:22 -0700</bug_when>
    <thetext>Hi Alexey,

(In reply to comment #3)
&gt; The patch in bug 6002 isn&apos;t finished yet, and I think it would be wrong to
&gt; introduce custom cursor support that only works with invalid declarations, so
&gt; I&apos;m reopening this bug (proposing to land this now).

I got a bit busy and sidetracked, and since I am not too fond of implementing
complex testcases (IIRC that was required for 6001/6002) I chose not to work on it.
However IIRC it was not that far from finished, so if you feel it is important I can work on it
and finish it soon. Nevertheless, any patches that improve webkit, even when they&apos;ll be replaced
by other patches later, are fine by me :) Let me know on IRC how we can best approach the cursor
work, if you have some time.
Cheers,

Rob.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50297</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-07-18 12:54:30 -0700</bug_when>
    <thetext>Committed revision 15505.

(In reply to comment #5)
&gt; Ideally we&apos;d check that the remaining items are URIs then legal cursor names.
&gt; This will allow many incorrect cursor declarations to parse too.

Agreed; I just felt that simplicity of a patch was more important in this case.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>8433</attachid>
            <date>2006-05-20 05:17:17 -0700</date>
            <delta_ts>2006-07-17 19:39:59 -0700</delta_ts>
            <desc>proposed fix</desc>
            <filename>9013r1_patch.txt</filename>
            <type>text/plain</type>
            <size>2633</size>
            <attacher name="Alexey Proskuryakov">ap</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvY3NzL2Nzc3BhcnNlci5jcHAKPT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gV2ViQ29yZS9j
c3MvY3NzcGFyc2VyLmNwcAkocmV2aXNpb24gMTQ0OTkpCisrKyBXZWJDb3JlL2Nzcy9jc3NwYXJz
ZXIuY3BwCSh3b3JraW5nIGNvcHkpCkBAIC02NTksNyArNjU5LDcgQEAgYm9vbCBDU1NQYXJzZXI6
OnBhcnNlVmFsdWUoaW50IHByb3BJZCwgYgogICAgICAgICBicmVhazsKIAogICAgIGNhc2UgQ1NT
X1BST1BfQ1VSU09SOgotICAgICAgICAvLyAgWyBhdXRvIHwgY3Jvc3NoYWlyIHwgZGVmYXVsd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cGVuZGFyd2luLm9yZy9zaG93X2J1Zy5jZ2k/aWQ9ODk5MSI+QnVnIDYw
MDE8L2E+OiBXZWJLaXQgZG9lcyBub3QgaGFuZGxlIGZhbGxiYWNrIGN1c3RvbSBjdXJzb3JzPHA+
CitNb3ZlIHRoZSBjdXJzb3Igb3ZlciB0aGUgYmx1ZSBib3ggLSBpdCBzaG91bGQgYmVjb21lIGEg
aGVscCBjdXJzb3IgKHF1ZXN0aW9uIG1hcmspLgorPGRpdiBzdHlsZT0id2lkdGg6MTAwcHg7aGVp
Z2h0OjEwMHB4O2JhY2tncm91bmQtY29sb3I6bGlnaHRibHVlOyBjdXJzb3I6dXJsKHJlc291cmNl
cy9oZWxwQ3Vyc29yLnRpZmYpLCBoZWxwOyI+PC9kaXY+CkluZGV4OiBXZWJDb3JlL21hbnVhbC10
ZXN0cy9yZXNvdXJjZXMvaGVscEN1cnNvci50aWZmCj09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KQ2Fubm90IGRpc3BsYXk6
IGZpbGUgbWFya2VkIGFzIGEgYmluYXJ5IHR5cGUuCnN2bjptaW1lLXR5cGUgPSBhcHBsaWNhdGlv
bi9vY3RldC1zdHJlYW0KClByb3BlcnR5IGNoYW5nZXMgb246IHJlc291cmNlcy9oZWxwQ3Vyc29y
LnRpZmYKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fXwpOYW1lOiBzdm46bWltZS10eXBlCiAgICsgYXBwbGljYXRpb24vb2N0
ZXQtc3RyZWFtCgo=
</data>
<flag name="review"
          id="2865"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>