Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feSpotlight positioning does not work in Safari #31

Open
localnerve opened this issue Jul 3, 2017 · 1 comment
Open

feSpotlight positioning does not work in Safari #31

localnerve opened this issue Jul 3, 2017 · 1 comment
Labels

Comments

@localnerve
Copy link

localnerve commented Jul 3, 2017

I'm using a spotlight effect that seems to only work perfectly in chrome, ok in firefox, but will not position (x,y,z) at all in Safari. (Other browsers not tested)

I've tried different filter and primitive units, and while this makes a difference, Safari still cannot seem to position the lighting effect in any case.

In pursuit of understanding what is going on, I've tried lots of workarounds (including #22/#27), different userSpaceOnUse/objectBoundingBox combos, and different svg structure but have never been able to find one that works on Safari.

Examples

Default filter/primitive units (Safari positions it off-canvas to the right):
https://jsfiddle.net/localnerve/y470d52v/

objectBoundingBox units (easier to see Safari's positioning trouble):
https://jsfiddle.net/localnerve/uyc7o52k/

Pretty weird.

I have pictures on this stackoverflow issue to further demonstrate:
https://stackoverflow.com/questions/44891524/safari-trouble-positioning-svg-fespotlight-filter

@emilbjorklund
Copy link
Owner

This seems to (potentially) be fixed in WebKit.

Both now marked as fixed via these referenced bugs:

So, hopefully this will be fixed part of upcoming Safari releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants