selector { aspect-ratio: 1200 / 600; background-color: tomato; mask-image: url("/* SVG URL */"); -webkit-mask-image: url("/* SVG URL also here */"); mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat; mask-size: 100% auto; -webkit-mask-size: 100% auto; /* mask-size: contain; */ /* -webkit-mask-size: contain; */ }