I would like to have a div element that I could set to repeat using CSS*, but it seems as though that is only possible with background image (background-image:...; background-repeat:repeat;). How can I do it with a regular div?
note: the div contains an svg, which contains 2 polygons (2 right triangles that make a square. I want them to cover the entire screen).
*Edit: Tried using CSS to do this, getting very weird results. I assume Javascript is a better option for this.
        <div class='square' style="background-repeat:repeat-x;">
            <svg viewBox='0 0 100 100'>
                <polygon points='0,0 2,0 0,2' />
                <polygon points='2,0 2,2 0,2' />
            </svg>
        </div>
 
    