Facepunch / sbox-issues

175 stars 12 forks source link

Support inline SVGs #5008

Open cmcskimming opened 8 months ago

cmcskimming commented 8 months ago

For?

S&Box

What can't you do?

SVG elements don't work in razor

How would you like it to work?

I'd just like it to work the same way it would work in HTML/Razor where you can put an SVG element inline with all the path data

What have you tried?

I tried typing an SVG element in to a screen panel razor component and nothing shows for the SVG element.

Additional context

https://gist.github.com/cmcskimming/43622f8443038d6364edf8389435561c

trundlr commented 3 months ago

On top of supporting inline SVGs, a lot of SVG properties are not recognized. It would be great if more of the spec was supported.