You paste an SVG into background-image: url("data:image/svg+xml,...") , reload, and get nothing. No error in the console, no broken-image icon, just an empty box.
The short answer: check three things, in this order. The SVG needs xmlns="http://www.w3.org/2000/svg" , every # must be written as %23 , and the quotes inside the SVG can't clash with the quotes around the CSS string. Those three cover almost every blank data URI I've debugged.
1. The missing xmlns
Inline SVG in HTML works without a namespace, because the HTML parser knows an <svg> tag is SVG. A data URI is different. The browser loads it as a separate, standalone XML document, and without xmlns it has no idea the markup is SVG, so it draws nothing.
This bites people who copy SVG out of a React component. Tools that convert SVG to JSX often strip xmlns because React doesn't need it.…