-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
linear-gradient in background is parsed as invalid #148
Comments
Changing this from |
Nice find! It seems jsdom doesn't handle the logic for any gradient function (linear-gradient, radial-gradient, conic-gradient, and its repeating variant). |
Hi, does someone work on this issue? |
Some notes.
|
I noticed that when I try to do snapshot testing on my react components with inline styles,
background: linear-gradient(...)
is missing from the snapshot.I described the issue in details on stackoverflow: https://stackoverflow.com/questions/70832768/jest-tomatchsnapshot-removes-inline-styles
I then tracked the issue to this:
In shorthandSetter the shorthandParser returns
undefined
because parseColor does know how to handlelinear-gradient
.The text was updated successfully, but these errors were encountered: