I have a question, and I hope someone can help me. What I'm looking for is the equivalent of the CSS background-repeat property in SVG images. Is there any hack to achieve repeating bitmaps as fills? The fact is that I am developing a website and want to experiment with SVG graphics to make it scalable. Therefore, when the user zooms out, everything remains completely sharp. However, I also need grainy bitmap textures. Now, if I use a bitmap as a texture in Illustrator and save it as an SVG, the textures are scaled along with the file and the fine grain become ugly blocks of pixels. Now I'm looking for an opportunity to repeat the image, rather than scale it when scaling. Does anyone know to hack this?
Another possibility that I was thinking about is removing the bitmap from the SVG and applying it as a background via CSS. Unfortunately, there is no way to prevent the background image from growing with CSS or JavaScript. Which makes sense, because anyone who does this on content elements will surely end up in an adventitious access.
source share