Bug 168651 - Custom cursor with drop-shadow filter not rendered
Summary: Custom cursor with drop-shadow filter not rendered
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari 10
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-02-21 03:15 PST by Gunnar Bittersmann
Modified: 2017-02-26 17:09 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gunnar Bittersmann 2017-02-21 03:15:52 PST
I’ve created a custom cursor:

<svg xmlns="http://www.w3.org/2000/svg" viewBox="-6 -4 12 10" width="24px" height="16px" filter="drop-shadow(0px 2px 1px #666)">
	<g id="border" fill="white">
		<circle cx="0" cy="0" r="1.707"/>
		<polygon points="-6 0, -1.293 -3.707, -1.293 3.707"/>
		<polygon points="6 0, 1.293 -3.707, 1.293 3.707"/>
	</g>
	<g fill="black">
		<circle cx="0" cy="0" r="1"/>
		<polygon points="-4.667 0, -2 -2, -2 2"/>
		<polygon points="4.667 0, 2 -2, 2 2"/>
	</g>
</svg>

and used it in the stylesheet:

	cursor: url('/calendar/styles/ew-scroll.svg') 12 8, all-scroll;


The cursor shows up in Chrome (blurred on Retina displays, but that’s another bug), but no cursor is rendered in Safari, i.e. neither the custom cursor nor the default all-scroll cursor.

When removing the filter attribut, the cursor is visible in Safari.

The behavior is the same when filter is not set via attribute but as a CSS rule in a style element.
Comment 1 Radar WebKit Bug Importer 2017-02-26 17:09:21 PST
<rdar://problem/30725505>