Closed alicegherbison closed 3 months ago
Hi. Very likely that Autoprefixer update triggers caniuse-lite
and electron-to-chromium
update and new version is not require -webkit-
.
As we can see Chrome ≥120 doesn’t need -webkit-
for masks https://caniuse.com/css-masks
And Electron ≥28 uses Chromium ≥120 and should work without -webkit-
https://github.com/Kilian/electron-to-chromium/blob/master/versions.js#L145-L150
What Electron do you use to test?
That makes sense, thank you. It's Electron 22.3.27 - we're currently bound to that version due to other dependency requirements. What would be the best approach? Downgrade to 10.4.12 until we can get Electron to 28?
Downgrade to 10.4.12
Nope. It will not have since you already updated caniuse-lite
and electron-to-chromium
.
With new browsers database any Autoprefixer will do the same.
What would be the best approach?
You should the power of Browserslist config and define your requirements there (and then all tools will know that you need to support Electron 22.3.27, and new developers will know where to look).
Create .browserslistrc
with, for instance, content:
Electron >=22.3.27
You can find what queries you have to define your target browser policies here: https://browsersl.ist/
Also that website can be useful to debug your Browserslist config: https://browsersl.ist/#q=Electron+%3E%3D22.3.27
Thank you very much for your help - will do that.
package.json:
.browserslist.rc:
This issue is not present on autoprefixer 10.4.12 and below.
Input SCSS:
Output CSS (all three non-prefixed properties are struck through and 'unknown' - Electron does not recognise them):
Expected output CSS (as in 10.4.12) (with non-prefixed properties struck through and 'unknown'):
The result is the SVG-shaped mask is not applied in Electron as the non-vendor-prefixed properties are not recognised and the vendor versions are not provided; all that shows is the background colour. Is this issue to be expected? Any help much appreciated.