You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a wider issue mainly coming from inline SVGs used on the web. Is common that canvas size is missing completely or just height is being defined.
I think the specification doesn't mention SVGs without width/height/viewBox as invalid. They just inherit the viewPort size.
PS: The SVG I have attached gives different size results WKWebView vs WebView (if size+viewBox is unspecified). Old webview one could easily determine size of DOM element. WKWebView one has to use getBBox() which doesn't support stroke so the resulting size is different. On top native NSImage supports loading SVG since sonoma but also gives slightly wrong size for these "ambiguous" SVGs
SVG files that use different units are currently rasterized as pixels. 10cm becomes 10px
https://developer.mozilla.org/en-US/docs/Web/API/SVGLength
https://github.com/WebKit/WebKit/blob/3b35a19d0a910ba3376525d9dae67fe6b4d5016f/Source/WebCore/svg/SVGLength.h
The text was updated successfully, but these errors were encountered: