Remix.run Logo
kccqzy 8 hours ago

If you just serve SVGs through <img> tag it’ll be much safer. I never understood the appeal of inline <svg> anyways.

lenkite 7 hours ago | parent | next [-]

Inline SVG is stylable with CSS styles in the same HTML page.

runarberg 5 hours ago | parent [-]

Also animatible with the same context (Animation API, etc.) as the parent page, so different SVGs can influence each other’s animations.

rwj 7 hours ago | parent | prev [-]

Inline reduces round trips.

toast0 7 hours ago | parent [-]

You can use img with a data url?