IMO the issue comes from our prefix used in those CSS variables. We are Orange so we use the o- prefix.
It seems that Autoprefixer thinks our o- corresponds to Opera at some point.
I'm saying that because I've tested a lot of prefixes that work, but another use case that doesn't work is with the ms- prefix:
I'm not really sure of the source of the issue here but I ran into something strange related to
o-
prefix used in CSS variables:var(--o-*)
.We have this rule:
that is not transformed into:
and should be rather:
For all other
mask-image
rules in our project we have the-webkit-mask-image
addition.Our .browserslistrc is a bit complicated but a simple one like the default one in https://autoprefixer.github.io/ shows the same thing.
Analysis
IMO the issue comes from our prefix used in those CSS variables. We are Orange so we use the
o-
prefix. It seems that Autoprefixer thinks ouro-
corresponds to Opera at some point. I'm saying that because I've tested a lot of prefixes that work, but another use case that doesn't work is with thems-
prefix:How to reproduce
Result
Expected