Remix.run Logo
Karliss 2 days ago

Selectable and more importantly searchable text is one of the reasons why I occasionally open Large SVG diagrams in browser instead of the usual image viewer.

lpln3452 2 days ago | parent [-]

Right. I'd always just seen SVG as an image format. Interesting that browsers treat text inside them just like plain text.

leptons 2 days ago | parent | next [-]

You can actually embed HTML inside an SVG using the foreignObject element.

DrewADesign 2 days ago | parent | prev | next [-]

I’ve done some cool things with the built-in SMIL animation too. You can control it with JavaScript and CSS… Watch out for the filters though — they can be pretty heavy compute-wise.

wild_egg 2 days ago | parent | prev [-]

I mean, it is just plain text inside some XML tags. It'd be weirder if they treated it like text in a photo