SVG as Data URI for background image

by Alex

HTML

<h1>SVG at a data URI for background images....</h1>
<p>just because you can, doesn't mean you should.<p>
<svg width='15' height='10' viewBox='0 0 15 10' fill-rule='evenodd'><path d='M15 0L7.5 10 0 0z'></path></svg>

CSS

body { background-image: 
        url("data:image/svg+xml;utf8,<svg  xmlns='http://www.w3.org/2000/svg' width='15' height='10' viewBox='0 0 15 10' fill-rule='evenodd'><path d='M15 0L7.5 10 0 0z'></path></svg>");
    
    background-repeat: repeat;
    color: white; text-shadow: 2px 2px rgba(0,0,0,0.4);}
h1 {font-size: 20px;}