Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVG <use> tag is broken when the parent page has file:// url #1051

Closed
AndreyBelym opened this issue Feb 22, 2017 · 1 comment
Closed

SVG <use> tag is broken when the parent page has file:// url #1051

AndreyBelym opened this issue Feb 22, 2017 · 1 comment
Assignees
Labels
STATE: Auto-locked Issues that were automatically locked by the Lock bot SYSTEM: resource processing TYPE: bug
Milestone

Comments

@AndreyBelym
Copy link
Contributor

index.html:

<!DOCTYPE html>
<html>
<head>
    <title>Test</title>
</head>
<body>
<svg style="width: 30px; height: 30px">
    <use xlink:href="./icons.svg#hamburger-menu"></use>
</svg>
</body>
</html>

icons.svg:

<svg display="none" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  <defs>
    <symbol id="hamburger-menu" viewBox="0 0 10 10">
      <title>hamburger menu</title>
      <rect y="0.5" width="10" height="1" fill="currentColor"/>
      <rect y="4.5" width="10" height="1" fill="currentColor"/>
      <rect y="8.5" width="10" height="1" fill="currentColor"/>
    </symbol>
  </defs>
</svg>

When proxying index.html with hammerhead by http://, all is fine, the hamburger icon is shown. But when index.html is proxied with file:// protocol. the icon will not be displayed. Reproduced in playground with chrome --disable-web-security --user-data-dir and electron.

@LavrovArtem LavrovArtem self-assigned this Feb 22, 2017
@LavrovArtem LavrovArtem added this to the Sprint #5 milestone Feb 28, 2017
LavrovArtem added a commit to LavrovArtem/testcafe-hammerhead that referenced this issue Feb 28, 2017
AndreyBelym pushed a commit to AndreyBelym/testcafe-hammerhead that referenced this issue Feb 28, 2019
@lock
Copy link

lock bot commented Mar 28, 2019

This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow.

@lock lock bot added the STATE: Auto-locked Issues that were automatically locked by the Lock bot label Mar 28, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Mar 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
STATE: Auto-locked Issues that were automatically locked by the Lock bot SYSTEM: resource processing TYPE: bug
Projects
None yet
Development

No branches or pull requests

2 participants