-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stylis upgrade #2590
Stylis upgrade #2590
Changes from 4 commits
4df0111
9ee44e7
26b3e2d
2deb8d4
7c3324d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
'@emotion/babel-plugin': patch | ||
'@emotion/cache': patch | ||
'@emotion/css': patch | ||
'@emotion/css-prettifier': patch | ||
'@emotion/jest': patch | ||
'@emotion/react': patch | ||
--- | ||
|
||
Upgraded and pinned the version of Stylis - the CSS parser that Emotion uses under the hood. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,8 +89,9 @@ export let compat = element => { | |
if ( | ||
element.type !== 'rule' || | ||
!element.parent || | ||
// .length indicates if this rule contains pseudo or not | ||
!element.length | ||
// positive .length indicates that this rule contains pseudo | ||
// negative .length indicates that this rule has been already prefixed | ||
element.length < 1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this fixes prefixed rules (like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is stylis's prefixing of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, its prefixing it alright - we were screwing up the prefixed rules here though, before this change |
||
) { | ||
return | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've decided to pin the version of this dependency as it's super crucial for Emotion and changes to it can affect our code in subtle ways. We want to keep this up-to-date with every release of Stylis - but we should always verify that our test suite passes before we can bump this dependency range