.icon-dog { background-image: url(svg/flat/dog.svg); }
.mask-dog { background-color: currentColor; mask: url(svg/line/dog.svg) center / contain no-repeat; }
Masks need the page to be served over http(s); browsers block them on file:// pages.