240 bytes, image/svg+xml
352 bytes, image/svg+xml
461 bytes, image/svg+xml
397 bytes, image/svg+xml
8.83 KB, application/octetstream
Mozilla does well on the SVG cursor test. It implements all the built in cursors from CSS2. It gails to implement the url() form, probably because in CSS2 this was poorly specified in terms of conformance. SVG 1.0 fixes that with its cursor element and link to a PNG file. It would be excellent (and help both SVG 1.1 and CSS 2.1) to see the cursor property fully implemented. This involves fetching the PNG file, reading the hotspot coordinates from the cursor element, and creating a platform custom cursor 9on those platforms that support it, or a black and white version on X windows).
This is the MSDN documentation for custom cursors. There seems to be a single call for this: "You can also create a custom cursor at run time by using the CreateIconIndirect function, which creates a cursor based on the content of an ICONINFO structure. The GetIconInfo function fills this structure with hot spot coordinates and information concerning the associated mask and color. " http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/resources/cursors/aboutcursors.asp I couldn't find the API calls for MacOS or mac OS X but notice "Cursor utilities are fully supported in Mac OS X." http://developer.apple.com/technotes/tn/tn2003.html which implies it is possible. Hardware cursors seem to be 16x16, software cursors any size. I am looking into documentation on custom cursors for X Windows but it seems to be limited to monochrome.
Mass voting for advance in CSS cursor implementation...
After several tests I found that cursor "url()" property is completely broken in Mozilla 1.2.1: it is NOT ignored (as it should be before it is implemented), it is rather interpreted as "text" instead, or at least it looks like that: a standard I-bar: ~T~ | | | ~~~ This makes it completely impossible to render URL-defined cursors for elements other than text - e. g., for hyperlinks. Though I once succeeded in writing webpage both MSIE and Mozilla compatible, I had to use dirty MSIE trick @import, placing cursor URL into CSS file which was imported by that non-standard directive. As Jakob Nielsen once wrote in his "Designing Web Usability: The Practice of Simplicity" (http://useit.com/jakob/webusability/), marking external hyperlinks (from one site to another) should mean not only placing dedicated small icons nearby, but also changing or altering hovering cursor color and/or shape as well - which is simple and won't need screen space, as icons do. (I can't give the exact quote here, because I only read Russian translation of the book.) That's why the "cursor: url();" feature has potentially extreme importance for the Web, and bugs accompanying its implementation in Mozilla are so annoying. Cursor: url() was implemented in Microsoft Internet Explorer since version 6.
I feel someone (e.g. reporter) should change bug severity to "major". Existance of such a bug may indicate serious problem in Mozilla CSS implementation: the browser should ignore the url(), if it cannot render it. Any unintellegible CSS properties should be ignored. If some are not, there's an inner bug in Mozilla CSS parser. Am I right about that?
This is a general style system bug, not confined to SVG. It's also a dupe. Re: comment 6, see bug 77974. *** This bug has been marked as a duplicate of 38447 ***
Status: UNCONFIRMED → RESOLVED
Last Resolved: 16 years ago
Resolution: --- → DUPLICATE
This has substantial overlap with, but is not a duplicate of, the general style cursor bug. SVG also has a cursor element, which needs to be implemented to fully resolve this bug (though it can of course be used from non-SVG namespaces also as it is indirected through the style system.
This bug is not RESOLVED. The summary should be 'Implement svg:cursor' ?
This works in Mozilla, but not in ASV. I was hoping this would work around our lack of support for the cursor element and attribute, and enable custom cursors to work in both Mozilla and ASV. Unfortunately, it doesn't work. ASV6 preview release overrides the cursor attribute in the markup with the CSS, so things fail since it only allows custom cursors to be set via a reference to a cursor element. Not by direct reference to the image that the cursor element references.
Reopening. As noted in comment 9 and comment 10, there is still work to do here. For the record, ASV3 doesn't support custom cursors at all.
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
Summary: cursor property url() not working → Implement the 'cursor' element and the 'cursor' attribute
Assignee: alex → general
Status: UNCONFIRMED → NEW
Ever confirmed: true
Any updates with regard to cursor="" attribute support in Gecko 1.9?
It will not be in 1.9. You can still get custom cursors though. See this file (and the comments in it): http://jwatt.org/svg/demos/custom-cursor.svg
Assignee: general → nobody
QA Contact: bbaetz → general
When 'two fallback' cursors are specified, only the last cursor, standard one, is used (FF4b7/Win7/64bit). Maybe I use wrong syntax, but it is Ok for Chrome. <defs> <cursor id="hand"> <path ... /> </cursor> <cursor id="hand_raster" x="10" y="9" xlink:href="hand.png"/> </defs> <g cursor="url('#hand'), url('#hand_raster'), pointer;"> ... </g>
There were missing resources so all the stuff is provided as the zip file now.
Attachment #497292 - Attachment is obsolete: true
My current plan is to WONTFIX this bug in favor of bug 619617.
The proposal in bug 619617 seems better to me because it's much lighter-weight, since in the common case it would only requires a property to be added to the SVG fragment that's to be used as a cursor image, instead of requiring a whole intermediary <cursor> element to be created. In the case of using a raster image, it would still be possible to use an <image> tag and specify the 'hot-spot' property on that.
You can now have SVG cursors too as long as you use just CSS to specify them and avoid the cursor element. See http://longsonr.wordpress.com/2010/12/16/svg-cursors/
Cursor element is deprecated: https://www.w3.org/TR/SVG2/interact.html#CursorElement
Status: NEW → RESOLVED
Last Resolved: 16 years ago → 2 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.