Bug 151707 - SVG fragment identifiers customizing viewbox are ignored on SVG as Image
Summary: SVG fragment identifiers customizing viewbox are ignored on SVG as Image
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-12-01 10:49 PST by Bear Travis
Modified: 2022-07-18 12:19 PDT (History)
9 users (show)

See Also:


Attachments
SVG Sprite Sheet with Custom Views (548 bytes, image/svg+xml)
2015-12-01 10:49 PST, Bear Travis
no flags Details
Test File (html) (611 bytes, text/html)
2015-12-01 10:52 PST, Bear Travis
no flags Details
Expected (left) vs Actual (right) (screenshot) (45.58 KB, image/png)
2015-12-01 10:55 PST, Bear Travis
no flags Details
Safari 15.5 matches other browsers (990.02 KB, image/png)
2022-07-18 10:01 PDT, Ahmad Saleem
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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!