SVG with no fixed size cannot be used as the css cursor
Reported by
friv...@gmail.com,
Jun 28 2017
|
|||||
Issue descriptionUserAgent: 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
,
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.
,
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.)
,
Jun 28 2017
,
Jun 29 2017
,
Jun 29 2018
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
,
Jun 29 2018
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by f...@opera.com
, Jun 28 2017Status: Available (was: Unconfirmed)