Bug 151707

Summary: SVG fragment identifiers customizing viewbox are ignored on SVG as Image
Product: WebKit Reporter: Bear Travis <betravis>
Component: SVGAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: ahmad.saleem792, ap, bfulgham, graouts, mmaxfield, rniwa, sabouhallawa, webkit-bug-importer, zimmermann
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
SVG Sprite Sheet with Custom Views
none
Test File (html)
none
Expected (left) vs Actual (right) (screenshot)
none
Safari 15.5 matches other browsers none

Description Bear Travis 2015-12-01 10:49:47 PST
Created attachment 266361 [details]
SVG Sprite Sheet with Custom Views

Related to bug 137328.

When loading as SVG as image, fragment identifiers specifying a custom viewBox or targeting a custom view within the SVG are ignored. You can see this by opening the attached test file.

This behavior is slightly different than the behavior prior to the fix for bug 137328. Before that, the images would render at a shared viewBox, which was most often incorrect. Now, the custom viewBox is ignored.

Tested in Safari 9.0.1 and WK Nightly.
Comment 1 Bear Travis 2015-12-01 10:52:29 PST
Created attachment 266362 [details]
Test File (html)
Comment 2 Bear Travis 2015-12-01 10:55:09 PST
Created attachment 266363 [details]
Expected (left) vs Actual (right) (screenshot)
Comment 3 Radar WebKit Bug Importer 2015-12-01 13:10:09 PST
<rdar://problem/23711206>
Comment 4 Ahmad Saleem 2022-07-18 10:01:52 PDT
Created attachment 460979 [details]
Safari 15.5 matches other browsers

I am unable to reproduce the following bug using attached test case and it is not showing "Expected Results" screenshot in Safari 15.5 on macOS 12.4. As can be seen it the attached screenshot, it is matching with all other browsers.

I think it was fixed along the way and can now be marked as "RESOLVED CONFIGURATION CHANGED". If it is tested incorrectly, please test accordingly. Thanks!