.masked { width: 100px; height: 100px; background-color: #8cffa0; margin: 20px; border: 20px solid #8ca0ff; padding: 20px; -webkit-mask-image: url(./MDN.svg); -webkit-mask-size: 100% 100%; -webkit-mask-clip: border-box; mask-image: url(./MDN.svg); mask-size: 100% 100%; mask-clip: border-box; }