Last Comment Bug 275173 - Cursor glyph for CSS3 'no-drop' is the same as for 'not-allowed'
: Cursor glyph for CSS3 'no-drop' is the same as for 'not-allowed'
Status: NEW
tpi:+
: css3, helpwanted, testcase
Product: Core
Classification: Components
Component: Widget (show other bugs)
: Trunk
: All All
: P4 enhancement with 6 votes (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
Mentors:
https://bugzilla.mozilla.org/attachme...
Depends on:
Blocks: 280331 1133584 163174
  Show dependency treegraph
 
Reported: 2004-12-18 07:29 PST by Mats Palmgren (vacation)
Modified: 2016-07-20 12:22 PDT (History)
16 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
Windows bitmaps (BMP, ICO, CUR) (39.74 KB, text/plain)
2004-12-18 11:12 PST, Sergey «Mithgol the Webmaster» Sokoloff
no flags Details
Microsoft Windows custom cursor (.CUR) for CSS3 no-drop (766 bytes, image/x-mswindows-cursor)
2004-12-18 11:28 PST, Sergey «Mithgol the Webmaster» Sokoloff
no flags Details
Microsoft Windows custom cursor (.CUR) for CSS3 no-drop (326 bytes, image/x-icon)
2004-12-18 12:43 PST, Sergey «Mithgol the Webmaster» Sokoloff
no flags Details

Description Mats Palmgren (vacation) 2004-12-18 07:29:35 PST
Cursor glyph for CSS3 'no-drop' is the same as for 'not-allowed'.

(spawned off from bug 163174 comment 98)

The desired glyph is a hand with a small 'not-allowed' symbol next to it.
http://www.worldtimzone.com/mozilla/testcase/css3cursors.html
Comment 1 Sergey «Mithgol the Webmaster» Sokoloff 2004-12-18 07:47:14 PST
I've just started working on a new glyph.
Comment 2 Gérard Talbot 2004-12-18 10:33:13 PST
Sergey, which program do you use to create win32 cursors? I use MicroAngelo. I
can easily convert a 32x32 .gif into a valid win32 .cur file.
I've created a custom no-drop win32 .cur; the only issue remaining is
determining the hotspot preferred in Mozilla.

http://www.gtalbot.org/GRAPHICS/ICO/Custom_made_no-drop.cur
With MSIE 6, you can view it
http://www.gtalbot.org/HTMLJavascriptCSS/Cursors.html#CSS3
Comment 3 Sergey «Mithgol the Webmaster» Sokoloff 2004-12-18 11:06:58 PST
Frankly speaking, I edit the corresponding doublebytes manually after creating
the cursor.

I'll attach the specs for you here, wait a minute.
Comment 4 Sergey «Mithgol the Webmaster» Sokoloff 2004-12-18 11:12:13 PST
Created attachment 169054 [details]
Windows bitmaps (BMP, ICO, CUR)

To save your time, I'll summarize: 0A is X coord offset, 0C is Y coord offset
for hotspot.
Comment 5 Sergey «Mithgol the Webmaster» Sokoloff 2004-12-18 11:28:29 PST
Created attachment 169055 [details]
Microsoft Windows custom cursor (.CUR) for CSS3 no-drop

Open it in your favourite hex editor; the first bytes should be:

00 00 02 00 01 00 20 20 04 00 06 00 01 00 E8 02

06 and the following 01 is the hotspot: X=6, Y=1, counting from (0;0) the upper
left corner of the bitmap.
Comment 6 Sergey «Mithgol the Webmaster» Sokoloff 2004-12-18 11:35:45 PST
Several differences between my version and
http://www.gtalbot.org/GRAPHICS/ICO/Custom_made_no-drop.cur are the following:

1) I used 1-pixel white halo around no-drop symbol to make it visible on black
or other dark backgrounds

2) I made hand's thumb somewhat wider, to match anatomy of average user
Comment 7 Sergey «Mithgol the Webmaster» Sokoloff 2004-12-18 12:43:35 PST
Created attachment 169063 [details]
Microsoft Windows custom cursor (.CUR) for CSS3 no-drop

Reduced unnecessary bloat; now this cursor is as small in filesize as 326
bytes.
Comment 8 Gérard Talbot 2004-12-18 12:53:10 PST
> 1) I used 1-pixel white halo around no-drop symbol to make it visible on black
> or other dark backgrounds
> 

Yeah, good idea: MSIE 6 does that.

> 2) I made hand's thumb somewhat wider, to match anatomy of average user

Also, your .cur file is smaller (766 bytes, 16 colors); mine is 2238 bytes, 256
colors.
Comment 9 Sergey «Mithgol the Webmaster» Sokoloff 2004-12-18 12:58:17 PST
2 colors should be enough ;-)
Comment 10 Gérard Talbot 2006-11-08 22:23:22 PST
"
no-drop
    Indicates that the dragged item cannot be dropped at the current cursor location. Often rendered as a hand or pointer with a small circle with a line through it. 

not-allowed
    Indicates that the requested action will not be carried out. Often rendered as a circle with a line through it.
"
http://www.w3.org/TR/2004/CR-css3-ui-20040511/#drag-and
Comment 11 d 2009-12-13 06:32:11 PST
A lot of things has changed since 2006, and since I don't have access to a computer with Windows, I wonder, is this still the case?
Comment 12 d 2009-12-13 06:34:52 PST
Should have tried the testcase first, it's the same thing on Mac OS X. This should be switched from a Windows bug to an all OS bug, or, closed, if we feel that there is no need to have different cursors.
Comment 13 j.j. 2010-07-06 07:34:08 PDT
What's the right component for this bug?

Note You need to log in before you can comment on or make changes to this bug.