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
Emotion keeps a local copy of the stylis prefixer to only apply the prefixes they consider necessary. Emotion will likely remove all of the prefixes in v12, but that might take some time to land. See related PR emotion-js/emotion#3296
We tell users to use the stylis prefixer in our docs. Although most of the CSS properties shouldn't be prefixed anymore using the stylis prefixer because they're widely available, there are a few properties that still require a prefix (see comments in this Emotion PR, which keeps their own local copy of the stylis prefixer:
It's not safe to remove the stylis prefixer just yet, because of this. The ideal path forward would be for stylis to be less defensive and remove widely supported prefixes in a new version, but it's not clear which are the browsers that stylis wants to support.
Our components have the prefixes present. Do these come from Emotion or our configuration?
From what I see, we tell users to add the prefixed everytime they need to setup an Emotion cache. But for that, we're using Emotion's createCache. Doesn't Emotion add the prefixes on their side?
oliviertassinari
changed the title
[core] Remove stylis prefixer
[internal] Remove stylis prefixer
Feb 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internalBehind-the-scenes enhancement. Formerly called “core”.
4 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #44921 (comment)
Context
Emotion keeps a local copy of the stylis prefixer to only apply the prefixes they consider necessary. Emotion will likely remove all of the prefixes in v12, but that might take some time to land. See related PR emotion-js/emotion#3296
We tell users to use the stylis prefixer in our docs. Although most of the CSS properties shouldn't be prefixed anymore using the stylis prefixer because they're widely available, there are a few properties that still require a prefix (see comments in this Emotion PR, which keeps their own local copy of the stylis prefixer:
color-adjustbox-decoration-breakmask,mask-image,mask-(mode|clip|size),mask-(repeat|origin),mask-position,mask-compositeuser-select,hyphens,text-size-adjustIt's not safe to remove the stylis prefixer just yet, because of this. The ideal path forward would be for stylis to be less defensive and remove widely supported prefixes in a new version, but it's not clear which are the browsers that stylis wants to support.