New issue
Advanced search Search tips

Issue 737459 link

Starred by 5 users

Issue metadata

Status: Available
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 3
Type: Bug



Sign in to add a comment

SVG with no fixed size cannot be used as the css cursor

Reported by friv...@gmail.com, Jun 28 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36

Steps to reproduce the problem:
Load this CSSWG test:
http://test.csswg.org/suites/css-ui-3_dev/nightly-unstable/html/cursor-image-005-nfs.htm

What is the expected behavior?
The test should pass (you should see a sheep when hovering the box)

What went wrong?
The test fails.

Did this work before? No 

Does this work in other browsers? N/A

Chrome version: 59.0.3071.115  Channel: stable
OS Version: OS X 10.11.6
Flash Version: 

correctly supports using an SVG file as the mouse cursor using the css "cursor" property[1], but it fails to load/show the image for SVG files with no fixed size. This cause the test to fail.

[1] https://drafts.csswg.org/css-ui-3/#cursor
 

Comment 1 by f...@opera.com, Jun 28 2017

Labels: -Pri-2 OS-Chrome OS-Fuchsia OS-Linux OS-Windows Pri-3
Status: Available (was: Unconfirmed)
I guess the relevant bit of spec text here is this:

  "The default object size for cursor images is a UA-defined size that should be 
   based on the size of a typical cursor on the UA’s operating system."

Don't know if we have any good platform-specific values like that. Maybe f* kMaximumCursorSize (128) is something we can use (f=0.5 or so?)

Comment 2 by friv...@gmail.com, Jun 28 2017

Are all the built-in cursors (all) delegated to the OS, or are there images bundled with the browser itself? If you're using images, use the same size?

Otherwise, (assuming these sizes are in css pixels, not device pixels), I think f = 0.25 to f = 0.5 seems like a reasonable range. Or maybe skip making it dependent on the maximum size, and shoot straight for 32px to 64px.

Comment 3 by f...@opera.com, Jun 28 2017

The built-in cursors are mapped to OS cursors by the platform layer, so I don't think any size is readily available there. For image cursors the intrinsic size is (always) used (which means we get 0x0 in this case.)
Yes, if we randomly pick a dimension to use for the default object size, it needn't depend on the max size (and it may even be tricky to do in a nice way due to impl. layering.)
Labels: BugSource-User PaintTeamTriaged-20170628
Labels: -OS-Fuchsia
Project Member

Comment 6 by sheriffbot@chromium.org, Jun 29 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: Available (was: Untriaged)

Sign in to add a comment