gabceb / atom-web-view

Package to open a web browser inside Atom
MIT License
52 stars 8 forks source link

SVG Object Rendering #36

Open diggetybo opened 8 years ago

diggetybo commented 8 years ago

HTML and CSS were able to be properly displayed in this web viewer package, however when I made an SVG object, things started to go awry.

For example, I made a simple circle with r="100" and fill="blue". It was then displayed in web view as a blue square. Then i tried making some changes, like changing the cx and cy but then the svg disappeared altogether.

I opened my html up in a normal browser just to make sure it wasn't my code, but in the normal browser everything displayed correctly. I saw a circle of the right size and position. So, my guess is there is some compatibility issue with SVG and web view.

Has anyone else had these problems? I really love this package, but unfortunately I need to get SVG running in web view somehow, I hope someone can help out.

Thanks for reading!

Announcement commented 8 years ago

This is a problem with blink/webkit. SVG's do not like iframes... honestly neither should you lol. it's quick and dirty and simple, this whole thing really is.