sanitize.css icon indicating copy to clipboard operation
sanitize.css copied to clipboard

Don't repeat mask images by default

Open wimhendrikx opened this issue 3 years ago • 3 comments

wimhendrikx avatar Nov 09 '22 08:11 wimhendrikx

Out of curiosity, @wimhendrikx, since I can't remember using mask-image lately. I agree with sanitize.css not repeating background is a more intuitive default CSS behaviour, is it equally intuitive when it comes to mask-image? I guess it's clearly more consistent at least.

jssteinberg avatar Nov 09 '22 11:11 jssteinberg

Hi @jssteinberg , I myself use it a lot and the usage is a lot like background images but I use mask image with SVG images and background-color so I can determine the color in my CSS instead of in the SVG image. 90% of the time you don't want to repeat the image like it is the case with background images.

wimhendrikx avatar Nov 09 '22 12:11 wimhendrikx

Something like this @jonathantneal?

Before:

Scherm­afbeelding 2022-11-10 om 14 36 31

After:

Scherm­afbeelding 2022-11-10 om 14 36 38

wimhendrikx avatar Nov 10 '22 13:11 wimhendrikx