- From: Yannis Juglaret via GitHub <sysbot+gh@w3.org>
- Date: Mon, 30 Jan 2023 17:05:52 +0000
- To: public-css-archive@w3.org
As a matter of fact, trying to implement this change for Firefox's UI made me realize how important this comment was: > Note that the cursor image may have some transparent areas, so visually the cursor can look smaller. Also, note that the cursor image doesn't have to be anchored at the top left corner, e.g. > > ```css > cursor: url(http://www.javascriptkit.com/dhtmltutors/cursor-hand.gif) 10 4, auto > ``` > > So even if the cursor image is 25px wide, it will only extend 15px to the right, so that's the amount you probably want. [This is true even for "official" Windows cursors](https://bugzilla.mozilla.org/show_bug.cgi?id=1712669#c18), e.g. the usual arrow pointer is a 32x32 bitmap with 19 columns of zeros on the right side, 13 rows of zeros at the bottom. So indeed I now understand why exposing "official" width and height (e.g. 32x32) is not enough, we would ideally need to expose 4 coordinates that define a "non-transparent box" for the cursor. Sebastian's proposal is quite appealing in that regard although I'm still unsure about the dynamic part. -- GitHub Notification of comment by yjugl Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8315#issuecomment-1408993448 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 30 January 2023 17:05:53 UTC