No, this is not possible. The SVG has to be prepared in one document (which may be a data URI or an externally referenced file) and then used as a background in another file.
More Related Contents:
- img src SVG changing the styles with CSS
- Transparent text cut out of background
- SVG data image not working as a background-image in a pseudo element
- Inline SVG in CSS
- Why does order of transforms matter? rotate/scale doesn’t give the same result as scale/rotate
- How can I make an svg scale with its parent container?
- SVG animation is not working on IE11
- CSS :before on inline SVG
- CSS transparent curved shape with two rounded sides
- Is there a way to use SVG as content in a pseudo element ::before or ::after
- SVG USE element and :hover style
- How to animate handwriting text on the web page using SVG?
- Triangle shape with background image
- Outlining and partially filling an SVG Shape
- Can I change the fill color of an svg path with CSS?
- How to make a element expand or contract to its parent container?
- SVG in img element proportions not respected in ie9
- Deprecated SMIL SVG animation replaced with CSS or Web animations effects (hover, click)
- CSS: Using raw svg in the URL parameter of a background-image in IE
- Background-size with SVG squished in IE9-10
- How to Include CSS style when converting svg to png
- How do I include a font awesome icon in my svg?
- How can I change the color of an ‘svg’ element?
- How to add animated gradient to an svg path?
- Transparent hollow or cut out shape in HTML
- 3d transforms on SVG element
- CSS change d property of
- Fill only Half a star with SVG
- Using SVG as background image
- Background color of tspan element