SVG images don't auto-embed
-
Given that SVG images work in <img> tags exactly like PNG or JPGs do, they really should embed like them by pasting the URL in its own line.
-
@anonymous234 said in SVG images don't auto-embed:
Given that SVG images work in <img> tags exactly like PNG or JPGs do, they really should embed like them by pasting the URL in its own line.
Proof:
Hmm..
Sorry for the yuge post.
ETA: it's a pity NudeBabe wraps the last one with a link. I wanted to see it interactive.
-
-
@Zecc said in SVG images don't auto-embed:
I wanted to see it interactive.
Nope, including a SVG in an <img> tag removes all scripts and interactivity, for security reasons I assume.
-
I see:
https://www.w3.org/TR/html5/embedded-content-0.html#the-img-element says:
The `src` attribute must be present, and must contain a valid non-empty URL potentially surrounded by spaces referencing a non-interactive, optionally animated, image resource that is neither paged nor scripted.
The requirements above imply that images can be static bitmaps (e.g. PNGs, GIFs, JPEGs), single-page vector documents (single-page PDFs, XML files with an SVG root element), animated bitmaps (APNGs, animated GIFs), animated vector graphics (XML files with an SVG root element that use declarative SMIL animation), and so forth. However, these definitions preclude SVG files with script, multipage PDF files, interactive MNG files, HTML documents, plain text documents, and so forth
I don't see why
img
tags couldn't be scripted, as long as they were subjected to the same same-origin and sandboxing restrictions as iframes.ď…‚
Wait...
The requirements above imply that images can be [...] single-page vector documents (single-page PDFs [...])
Huh.
-
And now I just noticed they also state the resources could be text files or HTML.
-
@Zecc said in SVG images don't auto-embed:
And now I just noticed they also state the resources could be text files or HTML.
Actually, it says 'preclude', so it can't be text files or HTML.
-
Right, the same way as it precludes "SVG files with script", just as I've underlined.
Don't mind me, E_CAFFEINE_LOW.