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
After upgrading to React v18.2.0 and Emotion v11.10.5, Emotion components started to insert an invisible character inside CSS image-set and -webkit-image-set rules. It always appears in the first url() after first & character.
Inserted character looks like some sort of invisible space and breaks CSS. Examples of broken CSS -
voronianski
changed the title
Invisible space injected into image-set CSS rule
Invisible unicode character is always injected into image-set CSS rule
Nov 16, 2022
voronianski
changed the title
Invisible unicode character is always injected into image-set CSS rule
Invisible Unicode Character 'FORM FEED (FF)' (U+000C) is always injected into image-set CSS rule
Nov 16, 2022
Current behavior:
After upgrading to React v18.2.0 and Emotion v11.10.5, Emotion components started to insert an invisible character inside CSS
image-set
and-webkit-image-set
rules. It always appears in the firsturl()
after first&
character.Inserted character looks like some sort of invisible space and breaks CSS. Examples of broken CSS -
To reproduce:
Use this link - https://codesandbox.io/s/confident-water-tsbbj6?file=/src/App.js
Check WorkingExample in DevConsole and notice that
backround-image
CSS is correctly recognized by browserCheck BrokenExample in DevConsole and notice that
backround-image
CSS in invalid -You can copy-paste CSS from BrokenExample into some CSS Validator to see this invisible char -
Expected behavior:
background-image
withimage-set
and-webkit-image-set
rules work as expected.Environment information:
react
version: 18.2.0@emotion/react
version: 11.10.5@emotion/styled
version: 11.10.5The text was updated successfully, but these errors were encountered: