Repository: flutter
Issue: [flutter_svg] Masks do not work in some cases
Labels: package,p: flutter_svg

_Imported from https://github.com/dnfield/flutter_svg/issues/586_

Original report by @vidklopcic on Aug 17, 2021

I noticed that sometimes masks do not work as expected. I attached the SVG where nothing gets rendered if mask is present.

```HTML
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" stroke-linecap="round"
     stroke-linejoin="round" stroke-width="0" fill-rule="evenodd" width="47.8633" height="48.279"
     viewBox="2032.6 698 47863.3 48279">
    <defs>
        <mask id="_DVWUPeC7JPp_clear-1" fill="#000" stroke="#000">
            <g>
                <rect x="2032.6" y="2425" width="47863.3" height="44109.1" fill="#fff"/>
                <path d="M 46749.4 5892.8 46442.1 5892.8 46442.1 5570 46732.5 5570 46749.4 5571.4 46769.2 5572.8 46791.7 5574.2 46814.3 5577 46836.8 5581.2 46856.6 5586.9 46859.4 5588.3 46865 5591.1 46873.5 5595.3 46884.8 5601 46897.4 5609.4 46910.1 5619.3 46922.8 5632 46932.7 5646.1 46934.1 5647.5 46936.9 5653.1 46941.1 5661.6 46946.8 5672.9 46951 5685.6 46955.2 5699.6 46958.1 5716.6 46959.5 5733.5 46959.5 5734.9 46959.5 5736.3 46958.1 5744.8 46956.6 5757.5 46953.8 5774.4 46946.8 5791.3 46938.3 5811 46925.6 5829.3 46908.7 5847.7 46905.9 5849.1 46898.8 5854.7 46887.6 5861.8 46869.3 5870.2 46848.1 5878.7 46819.9 5885.7 46787.5 5891.4 46749.4 5892.8"/>
            </g>
        </mask>
    </defs>
    <g fill="currentColor" stroke="currentColor" transform="translate(0,49675) scale(1,-1)">
        <g mask="url(#_DVWUPeC7JPp_clear-1)">
            <path d="M 46776.2 5999.9 46788.9 5999.9 46818.5 5998.5 46849.5 5994.3 46883.4 5990 46914.4 5983 46929.9 5978.8 46942.6 5974.5 46944 5974.5 46945.4 5973.1 46953.8 5968.9 46966.5 5963.3 46982 5953.4 46998.9 5940.7 47017.3 5923.8 47034.2 5904 47051.1 5881.5 47051.1 5880.1 47052.5 5878.7 47058.2 5870.2 47063.8 5856.1 47072.3 5837.8 47079.3 5816.6 47086.3 5791.3 47090.6 5764.5 47092 5734.9 47092 5733.5 47092 5730.7 47092 5725 47090.6 5718 47090.6 5708.1 47089.2 5698.2 47083.5 5674.3 47075.1 5646.1 47063.8 5616.5 47046.9 5586.9 47035.6 5572.8 47024.3 5558.7 47022.9 5557.3 47021.5 5555.9 47017.3 5551.6 47011.6 5547.4 47004.6 5541.8 46996.1 5536.1 46984.8 5529.1 46973.6 5520.6 46959.5 5513.6 46944 5506.5 46927.1 5498.1 46908.7 5491 46887.6 5485.4 46866.4 5478.3 46842.5 5474.1 46817.1 5469.9 46819.9 5468.5 46825.6 5465.6 46834 5460 46845.3 5454.4 46870.7 5438.8 46883.4 5429 46894.6 5420.5 46897.4 5417.7 46904.5 5410.7 46915.8 5399.4 46929.9 5385.3 46945.4 5365.6 46963.7 5344.4 46982 5319 47001.8 5290.8 47169.5 5025.8 47008.8 5025.8 46880.5 5228.8 46880.5 5230.2 46877.7 5233 46874.9 5237.3 46870.7 5242.9 46860.8 5258.4 46848.1 5278.2 46832.6 5299.3 46817.1 5321.8 46801.6 5343 46787.5 5362.7 46786.1 5364.1 46781.8 5369.8 46774.8 5378.2 46764.9 5388.1 46743.8 5409.2 46732.5 5419.1 46721.2 5427.6 46719.8 5429 46717 5430.4 46711.4 5433.2 46702.9 5437.4 46694.5 5441.7 46684.6 5445.9 46662 5453 46660.6 5453 46657.8 5454.4 46652.1 5454.4 46645.1 5455.8 46635.2 5457.2 46624 5457.2 46608.5 5458.6 46442.1 5458.6 46442.1 5025.8 46312.4 5025.8 46312.4 6001.3 46764.9 6001.3 46776.2 5999.9"/>
        </g>
    </g>
</svg>
```

https://github.com/dnfield/flutter_svg/issues/241 might be related?