docs.rodeo

MDN Web Docs mirror

SVG as an Image

{{SVGRef}} 

SVG images can be used as an image format, in a number of contexts. Browsers support SVG images in:

Restrictions

For security purposes, Gecko places some restrictions on SVG content when it’s being used as an image:

Note that the above restrictions are specific to image contexts; they don’t apply when SVG content is viewed directly, or when it’s embedded as a document via the {{HTMLElement("iframe")}} , {{HTMLElement("object")}} , or {{HTMLElement("embed")}}  elements.

Specifications

{{Specifications}} 

In this article

View on MDN