<!DOCTYPE html> <html> <head> <style> div { height: 30px; width: 100px; background-image: url("white-rect-with-viewbox.svg"); background-repeat: no-repeat; background-position: 30px; background-size: 40px 30px; background-color: yellow; } body { background-color: black; } </style> </head> <body> <div></div> </body> </html>