If a css mask is applied to a transformed image the result is like it is applied to the image and then the transformation is applied to the result
There's no testcase in this bug, but what you describe is the expected behavior. The mask is applied first, and then the transform. If you want different behavior, you need to apply the mask the parent of the transformed element.