You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, I have noticed a couple of prefixes that I would argue are more harmful than beneficial. Mainly, the flexbox properties. The global need for the prefix seems to be 0.48% (0.01 + 0.14 + 0.05 + 0.01 + 0.02 + 0.03 + 0.01 + 0.1 + 0.11). Do we need to keep it, at this point?
By removing it, we would gain:
A better DX when debugging CSS. When this module is used with emotion, you get this kind of output by default
Moving this comment here where we can track the discussion.
In a way, this could be seen as a breaking change.
In a way you could avoid a breaking change by exporting a prefixer, that is a 1-1 clone of the current prefixer with the suggested amendments, i.e export prefixer_bleeding_age™ given that the current prefixer is not privileged and is as much a middleware as any other.
Yep, it's only that with a different prefixer one would always bundle both as the prefixer is included in the default plugins. We've included that to make upgrading to Emotion 11 easier - but this is likely to change in Emotion 12 (no plans for it right now though)
@oliviertassinari An additional prefixer legacy clear middleware plugin could cleanup the unwanted prefixes, removing them entirely from the stock prefixer middleware would be a breaking change though. Given that what would we want to remove, just the flexbox?
@thysultan I guess I didn't understand why we closed this issue.
It looks like a breaking change indeed, but it seems that we need a place to keep track of the cases where we add prefixes that are not used. So this should stay open?
@brijeshb42 Fixing this could be a great way to improve the DX with Pigment CSS and Emotion (issue description)
Activity
[-]Remove updated prefixes[/-][+]Remove outdated prefixes?[/+]thysultan commentedon Jan 22, 2022
Moving this comment here where we can track the discussion.
In a way you could avoid a breaking change by exporting a prefixer, that is a 1-1 clone of the current prefixer with the suggested amendments, i.e export prefixer_bleeding_age™ given that the current prefixer is not privileged and is as much a middleware as any other.
Andarist commentedon Jan 22, 2022
Yep, it's only that with a different prefixer one would always bundle both as the prefixer is included in the default plugins. We've included that to make upgrading to Emotion 11 easier - but this is likely to change in Emotion 12 (no plans for it right now though)
cc @mitchellhamilton
matthew-dean commentedon May 13, 2022
I'd also love to know how to disable vendor prefixing. We don't need any of it in our environments, so it's injecting a lot of un-needed CSS.
Andarist commentedon May 13, 2022
If you are using Emotion then u can use CacheProvider and skip providing the prefixer plugin, u can roughly see how it could be done here: https://emotion.sh/docs/cache-provider
kc980602 commentedon Aug 12, 2022
For those who would like to remove MS prefix
oliviertassinari commentedon Aug 21, 2024
Why close this issue? It still seems to be a problem:
stylis/src/Prefixer.js
Line 136 in 0b51a35
thysultan commentedon Aug 22, 2024
@oliviertassinari An additional
prefixer legacy clearmiddleware plugin could cleanup the unwanted prefixes, removing them entirely from the stockprefixermiddleware would be a breaking change though. Given that what would we want to remove, just the flexbox?oliviertassinari commentedon Aug 28, 2024
@thysultan I guess I didn't understand why we closed this issue.
It looks like a breaking change indeed, but it seems that we need a place to keep track of the cases where we add prefixes that are not used. So this should stay open?
@brijeshb42 Fixing this could be a great way to improve the DX with Pigment CSS and Emotion (issue description)
oliviertassinari commentedon Aug 30, 2024
For flexbox, prefixed coverage is 0.04% of global browsers, this seems super low. https://caniuse.com/?search=flexbox
Remove it could be considered an improvement in a minor version 🤷♂️: