Bug 55066 - Parsing of the 'cursor' property doesn't follow the CSS 2.1 spec
Summary: Parsing of the 'cursor' property doesn't follow the CSS 2.1 spec
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-23 11:41 PST by Boris Zbarsky
Modified: 2022-07-23 13:09 PDT (History)
7 users (show)

See Also:


Attachments
Testcase (574 bytes, text/html)
2011-02-23 11:42 PST, Boris Zbarsky
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Boris Zbarsky 2011-02-23 11:41:55 PST
See the attached testcase.  The property value is invalid (in particular it's missing a fallback cursor name), but webkit accepts it.
Comment 1 Boris Zbarsky 2011-02-23 11:42:51 PST
Created attachment 83515 [details]
Testcase
Comment 2 Alexey Proskuryakov 2011-02-23 21:13:06 PST
This works according to the spec in strict mode, but not in quirks. According to bug 9013, that was done to match IE.

Should we revisit this now?
Comment 3 Tab Atkins 2011-02-24 09:00:24 PST
It appears that IE9 has dropped this particular quirk, so yeah, we should be able to drop it too.
Comment 4 Alexey Proskuryakov 2011-02-24 09:05:31 PST
It seems unlikely that IE has changed the behavior in compatibility mode though.
Comment 5 Tab Atkins 2011-02-24 09:07:37 PST
None of the four modes in a reasonably recent IE9 build (IE7, IE8, IE9, IE9 7 Compat) showed a cursor in Quirks mode.
Comment 6 Alexey Proskuryakov 2011-02-24 09:12:53 PST
This is surprising. My experience with cursors is very dated, but several years ago, a lot of pages used the "quirk" - to the point that we only allowed a single value in cursor list in WebKit at first, and didn't notice any problems with that for a while.

Since nearly every page using cursors had separate declarations for Firefox and IE due to different supported formats, it's unclear if Firefox compatibility story would necessarily be relevant for IE or WebKit.
Comment 7 Ahmad Saleem 2022-07-23 10:39:21 PDT
I am unable to reproduce 'red dot' cursor in attached test cases using Safari 15.6 on macOS 12.5 and all other browsers do same and only show 'text selection' cursor.

I think it was fixed along the way and this can be marked as "RESOLVED CONFIGURATION CHANGED". Thanks!
Comment 8 Ryosuke Niwa 2022-07-23 12:43:45 PDT
This appears to be fixed now.
Comment 9 Alexey Proskuryakov 2022-07-23 13:09:07 PDT
I verified that adding a fallback name makes the test work, so this is indeed fixed as intended, not masked by some other bug.