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

trying to wrap it in svg ForeignObject to make it usable in github readme #31

Open
sloev opened this issue Sep 10, 2020 · 1 comment
Open

Comments

@sloev
Copy link

sloev commented Sep 10, 2020

svg can have html inside:

<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
  <style>
    div {
      color: white;
      font: 18px serif;
      height: 100%;
      overflow: auto;
    }
  </style>
 
  <polygon points="5,5 195,10 185,185 10,195" />
  <foreignObject x="20" y="20" width="160" height="160">
    <div xmlns="http://www.w3.org/1999/xhtml">
     <h1>hello world</h1>
    </div>
  </foreignObject>
</svg>

i am trying to hack this foregin object into a bidirectional communication object within an svg but my skills are not mad enough i will keep this thread updated with my endeavours!

lets get this done!

@sloev
Copy link
Author

sloev commented Sep 10, 2020

maybe i can embed iframe instead

https://stackoverflow.com/a/52731071/5324953

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

No branches or pull requests

1 participant