Replies: 1 comment 1 reply
-
Interesting issue. Here's a much smaller reproduction of the phenomenon you are experiencing: https://codesandbox.io/s/insert-rule-quirk-8ss0pi. It does not involve Emotion at all. If you inspect the The properties appear to have an "empty value" even though the It looks like Percy does not exactly replicate the behavior of a real browser in this case. I'm not sure what would cause that — perhaps they are using headless Chromium or something like that. As to why the behavior is different in dev and prod, I'm going to convert this to a discussion since it does not appear to be an Emotion issue. Let me know if I'm mistaken. |
Beta Was this translation helpful? Give feedback.
-
Current behavior:
Production builds contain empty css values when using css variables in certain combinations of css properties. These empty values are handled properly by browsers (Chrome and FF tested)
but not by visual testing tools like
@percy/puppeteer
and@percy/cypress
Examples:
To reproduce:
Expected behavior:
Valid CSS styles using css variables in production builds (as they are in development builds)
Environment information:
react
version: 18.2.0@emotion/react
version: 11.9.3Beta Was this translation helpful? Give feedback.
All reactions