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

Safari filter and html base tag #39

Open
wald-tq opened this issue Jan 20, 2020 · 0 comments
Open

Safari filter and html base tag #39

wald-tq opened this issue Jan 20, 2020 · 0 comments
Labels

Comments

@wald-tq
Copy link

wald-tq commented Jan 20, 2020

When using a html <base href="" /> tag svg filter attribute makes element invisible:

example code:

<html>
  <head>
    <base href="test"/> <!-- ######### remove this base tag to make it work ######  -->
  </head>
  <body>
<svg>
  <defs>
    <filter x="0" y="0" width="1" height="1" id="solid">
      <feFlood flood-color="white"/>
      <feComposite in="SourceGraphic"/>
    </filter>
  </defs>
  <path d="m20 20h150v10h-150" stroke="#000" stroke-miterlimit="10"/>
  <text filter="url(#solid)" fill="#c45" x="50" y="30" font-size="50px">tesst</text>
</svg>
  </body>
</html>

Probably related to #22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants