Communities

(DEV) Codidact Meta
(DEV) Codidact Meta
(DEV) Writing
(DEV) Writing
Proposals
Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Does SVG work in posts?

+0
−0

Does SVG work in the image upload? No. Only png, jpeg, jpg, gif (even if the wrong file extension such as png is used, svg is rejected).

Does SVG in an <img> tag work? Yes in the edit preview, and in the saved post:

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

How about in comments? (4 comments)

3 answers

+0
−0

A PNG image for testing in comments:

Transparent dice on a transparent background

Thanks to Wikipedia

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

0 comment threads

+0
−0

How about inline SVG? No - "Unsupported HTML detected" and no rendering in editor preview or saved post.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

0 comment threads

+0
−0

How about animated SVG?

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

0 comment threads

Sign up to answer this question »