I\'m am trying to create an SVG which masks an image with a particular path however, when I try to fill the area using a pattern, the image does not cover the entire area.>
If background-position is needed as well as background-size: cover;
background-position
background-size: cover;
preserveAspectRatio="xMidYMid slice" // Will center the image
preserveAspectRatio="xMidYMid slice"
This link has all options available for the preserveAspectRatio attribute. And can help with centering the image within the pattern
All Options