Bug 164386 - SVG sprites don't work when served from server
Summary: SVG sprites don't work when served from server
Status: RESOLVED DUPLICATE of bug 163811
Alias: None
Product: WebKit
Classification: Unclassified
Component: Images (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-03 16:20 PDT by Xidorn Quan
Modified: 2016-11-11 11:39 PST (History)
2 users (show)

See Also:


Attachments
testcase (565 bytes, application/x-zip-compressed)
2016-11-03 16:20 PDT, Xidorn Quan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xidorn Quan 2016-11-03 16:20:09 PDT
Created attachment 293824 [details]
testcase

Using URL fragment to specify SVG sprite as image works when the SVG file is a local file. However, it doesn't work when the SVG file is served remotely. (Or even from localhost)

Steps to Reproduce:
1. Extract the testcase file to a directory
2. Run an HTTP server for that directory (simplest way is python -mSimpleHTTPServer)
3. Browse the test file via HTTP

Expected Results:
It should show a green block, like what it shows when you open the file from local directly.

Actual Results:
It shows a red block.


I can reliably reproduce this issue on Safari 10 as well as the Technology Preview. I tried to test Nightly but it seems it doesn't work at all, so I gave up...
Comment 1 youenn fablet 2016-11-07 09:08:11 PST
Probably a duplicate of 163811
Comment 2 Said Abou-Hallawa 2016-11-11 11:39:42 PST

*** This bug has been marked as a duplicate of bug 163811 ***