Does Mozilla support CSS cursor:url(somefile)?

Discussion of features in Seamonkey
Post Reply
User avatar
johann_p
Posts: 8479
Joined: November 5th, 2002, 3:05 am
Location: Sheffield, UK

Does Mozilla support CSS cursor:url(somefile)?

Post by johann_p »

Since this came up in MozillaNews, does anyone know if it is possible to get the CSS construct

cursor: url(file1), url(file2)

to work in Mozilla? Does it need some special file format? Does it work at all?
User avatar
Rick Bull
Posts: 76
Joined: November 10th, 2002, 12:31 pm
Location: England
Contact:

Post by Rick Bull »

Just going from memory I don't think Mozilla supports it at all (don't think opera does either, unless it's new to v7). Also in the draft of CSS 2.1 I thihnk URL for cursors have been removed for some reason.
seb
Posts: 1578
Joined: November 4th, 2002, 11:26 pm
Location: Paris, France
Contact:

Re: Does Mozilla support CSS cursor:url(somefile)?

Post by seb »

Johann_P wrote:Since this came up in MozillaNews, does anyone know if it is possible to get the CSS construct

cursor: url(file1), url(file2)

to work in Mozilla? Does it need some special file format? Does it work at all?
Don't think it's supported.
ppk couldn't get it to work: http://www.xs4all.nl/~ppk/css2tests/cursor.html
Arctic Dragon
Posts: 199
Joined: December 16th, 2002, 4:44 pm
Location: Ottawa, Canada

Post by Arctic Dragon »

I think only IE supports it so far.
I tried a quick test page I made that contained cursor: url("cursor.cur"), hand; with IE6, Mozilla 1.3 and Opera 7 Beta 2, and only IE displayed the cursor I made.
herman
Posts: 1034
Joined: November 7th, 2002, 3:45 pm

Post by herman »

Arctic Dragon wrote:I think only IE supports it so far.
I tried a quick test page I made that contained cursor: url("cursor.cur"), hand; with IE6, Mozilla 1.3 and Opera 7 Beta 2, and only IE displayed the cursor I made.


I quote from the link above:

ppk wrote:http://www.xs4all.nl/~ppk/css2tests/cursor.html

cursor: pointer. This is the W3C approved way to change the cursor to a hand. Microsoft at first disagreed, which is why Explorer 4-5.5 on Windows don't support this style. Only Explorer 6 has added W3C support. Explorer on Mac does support pointer.

cursor: hand. This is the Microsoft value to make the cursor a hand.


Only Microsoft supports it´s own "standards",
but standards are not made by a single company,
standards should serve the industry and therefore be independent from a single company.
The standards setting organization is W3C!

ppk wrote:The only true cross-browser syntax for a hand is:

p.pointerhand {
cursor: pointer;
cursor: hand;
}

Note that the two declarations must be in this order.



herman
User avatar
johann_p
Posts: 8479
Joined: November 5th, 2002, 3:05 am
Location: Sheffield, UK

what do you want to say herman?

Post by johann_p »

cursor: url(..) is in the current W3C recommendation: http://www.w3.org/TR/REC-CSS2/ui.html#cursor-props

Obviously IE is the only browser that supports this W3C recommendation. That is all there is to it.
herman
Posts: 1034
Joined: November 7th, 2002, 3:45 pm

Re: what do you want to say herman?

Post by herman »

Johann_P wrote:cursor: url(..) is in the current W3C recommendation: http://www.w3.org/TR/REC-CSS2/ui.html#cursor-props

Obviously IE is the only browser that supports this W3C recommendation. That is all there is to it.


Arctic Dragon wrote:I tried a quick test page I made that contained cursor: url("cursor.cur"), hand; only IE displayed the cursor I made.


then reread my posting:
cursor:hand is MS proprietary, cursor:pointer the w3c proposal.

So why did he test if IE6, Mozilla 1.3 and Opera 7 supports it?
That is no scientific test,
IE6 must support it, since it is his own spec,
the others are not specified to conform to MS-standards.

You have been asking for support of a W3C-standard,
Arctic Dragon stated the non-support of a non-standard by non-IE6-browsers.

herman
User avatar
johann_p
Posts: 8479
Joined: November 5th, 2002, 3:05 am
Location: Sheffield, UK

herman please read again

Post by johann_p »

you either misunderstood the CSS code or the post: the point is whether the browsers support the cursor:url(ss) construct, not the cursor: hand construct. I did a test myself with cursor: url(...), auto; with all these browsers and can confirm that only IE supports this.

That IE supports the non-W3C "hand" is a completely different issue and irrelevent to the topic discussed here.

For your info: the recommended behavior for "cursor: uri(some1), uri(some2), auto;" or "cursor: uri(some1), uri(some2), hand;" or whatever is that the UA uses the first one it supports or inherits the default one.
So if Mozilla would support cursor:uri() it would not need to look at "hand" or whatever comes after it.
(You can use cursor: hand, pointer; to make both Mozilla and IE happy)
User avatar
raj_bhaskar
Posts: 1946
Joined: November 7th, 2002, 3:50 am
Location: Glasgow, Scotland
Contact:

Re: Does Mozilla support CSS cursor:url(somefile)?

Post by raj_bhaskar »

Johann_P wrote:Since this came up in MozillaNews, does anyone know if it is possible to get the CSS construct

cursor: url(file1), url(file2)

to work in Mozilla? Does it need some special file format? Does it work at all?


See <a href="http://bugzilla.mozilla.org/show_bug.cgi?id=38447">bug 38447</a>, if I'm understanding you correctly.
Post Reply