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?
Does Mozilla support CSS cursor:url(somefile)?
- johann_p
- Posts: 8479
- Joined: November 5th, 2002, 3:05 am
- Location: Sheffield, UK
- Rick Bull
- Posts: 76
- Joined: November 10th, 2002, 12:31 pm
- Location: England
- Contact:
-
- Posts: 1578
- Joined: November 4th, 2002, 11:26 pm
- Location: Paris, France
- Contact:
Re: Does Mozilla support CSS cursor:url(somefile)?
Don't think it's supported.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?
ppk couldn't get it to work: http://www.xs4all.nl/~ppk/css2tests/cursor.html
-
- Posts: 199
- Joined: December 16th, 2002, 4:44 pm
- Location: Ottawa, Canada
-
- Posts: 1034
- Joined: November 7th, 2002, 3:45 pm
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
- johann_p
- Posts: 8479
- Joined: November 5th, 2002, 3:05 am
- Location: Sheffield, UK
what do you want to say herman?
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.
Obviously IE is the only browser that supports this W3C recommendation. That is all there is to it.
-
- Posts: 1034
- Joined: November 7th, 2002, 3:45 pm
Re: what do you want to say 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
- johann_p
- Posts: 8479
- Joined: November 5th, 2002, 3:05 am
- Location: Sheffield, UK
herman please read again
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)
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)
- raj_bhaskar
- Posts: 1946
- Joined: November 7th, 2002, 3:50 am
- Location: Glasgow, Scotland
- Contact:
Re: Does Mozilla support CSS cursor:url(somefile)?
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.