-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
Description
The CSS shorthand property mask without prefix is relatively new, but it has good support with the -webkit prefix. See caniuse.com mask and mask-image compared.
Currently esbuild does not prefix the shorthand mask, but it does prefix the individual properties, mask-image, mask-position, etc.
See the esbuild playground example which outputs the following:
Observed output
main {
mask: url(x.png) center/4rem no-repeat;
-webkit-mask-image: url(y.png);
mask-image: url(y.png);
}Expected output
main {
-webkit-mask: url(x.png) center/4rem no-repeat;
mask: url(x.png) center/4rem no-repeat;
-webkit-mask-image: url(y.png);
mask-image: url(y.png);
}Notes
- I'm working on a PR
- The documentation should probably be updated
Reactions are currently unavailable