Bug 155887 - Drop Shadow Filter prevents inline SVGs from displaying in Safari 9.1
Summary: Drop Shadow Filter prevents inline SVGs from displaying in Safari 9.1
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari 9
Hardware: All OS X 10.11
: P2 Major
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-03-25 09:37 PDT by Joel G Goodman
Modified: 2022-07-18 12:19 PDT (History)
12 users (show)

See Also:


Attachments
Safari 15.5 matches other browsers (1.72 MB, image/png)
2022-07-18 09:56 PDT, Ahmad Saleem
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joel G Goodman 2016-03-25 09:37:02 PDT
Applies to Safari 9.1 and mobile Safari released with iOS 9.3. If a drop-shadow filter is applied via CSS to an inline SVG, the SVG will not be visible. Interestingly enough, the box model is adhered to, and you can still inspect the various SVG parts, they just are not visible. Removing the drop-shadow filter fixes this behavior.

I have not tested with any other CSS filters at this point, but drop-shadow filters on SVGs worked prior to the release of Safari 9.1
Comment 1 Mike Sherov 2016-04-07 13:17:50 PDT
This is affecting https://behance.net as well, we use inline SVG with drop shadow for our appreciation buttons. See here: https://www.behance.net/gallery/35746977/Dolomites-Heart-Of-The-Alps

If the filter is removed from the `#appreciation svg` selector, the button rendered just fine.
Comment 2 Matthias Kretschmann 2016-04-29 02:44:37 PDT
In my test (Safari 9.1 / OS X 10.11.4) this is happening with ALL css filters, not just drop-shadow. 

Here's an isolated test case: https://jsfiddle.net/kremalicious/zf9cnjm0/
Comment 3 Radar WebKit Bug Importer 2016-06-15 09:47:53 PDT
<rdar://problem/26815681>
Comment 4 Ahmad Saleem 2022-07-18 09:56:31 PDT
Created attachment 460978 [details]
Safari 15.5 matches other browsers

I am unable to reproduce this issue based on attached test case in Comment 02 using Safari 15.5 on macOS 12.4. It matches with all other browsers and show alien / vampiric something character and all elements are visible (all legs, hoverboard, teeth etc.).

I think it was fixed along the way and can be marked as "RESOLVED CONFIGURATION CHANGED". If I tested incorrectly, please retest accordingly and happy to be educated. Thanks!