WKWebView/UIWebView doesn't show svg file properly

Originator:mihirpmehta
Number:rdar://33826188 Date Originated:August 10 2017, 6:29 PM
Status:Open Resolved:No
Product:iOS + SDK Product Version:11.0 beta
Classification:WebKit Reproducible:Everytime
 
Area:
WebKit

Summary:
in iOS 11 (beta 5) when you try to show an animated svg file inside WKWebView/UIwebView animation is completely distorted. 
Please note that exact same code works perfectly well when we run same code on device that runs on iOS 10.3.3 (With same version of Xcode 9 beta 2) 

I am using iPhone 7 running iOS 11 beta 5
Xcode 9 beta 2

Steps to Reproduce:
Run the given sample code on Xcode 9 with any device running iOS 11 (i have tried in iPhone 7)

Expected Results:
svg file should animate properly as it animates in any previous version of iOS app / Xcode Editor / Mac Preview app

Observed Results:
animation is completely distorted

Version:
iOS 11 beta 5

Notes:
Note following : 
1> svg file shown correctly in all other apps like preview , Xcode editor etc
2> I have tried several animated svg in all animated svg i have observed distortion in animation 
3> Using same version of Xcode (Xcode 9 beta 2) if i run same code on iOS 10.3.3 or 10.3.2 it displays it correctly with correct animation.

Configuration:
Phone 7 running iOS 11 beta 5

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!