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
It's worth noting that ReactDOM.render is preserving the CSS Variable name and not mutating it. It only seems to only be an issue with ReactDOMServer.renderToString
The text was updated successfully, but these errors were encountered:
I think problem is the createMarkupForStyles function (react-dom/server/ReactPartialRenderer.js), because It runs hyphenateStyleName on custom css property so that's why CSS variable casing is mutated.
Do you want to request a feature or report a bug?
Bug
Current Behaviour
ReactDOMServer.renderToString
is mutating CSS Variable names that are inlined and in the--camelCase
format into--kebab-case
Expected Behaviour
ReactDOMServer.renderToString
does not mutate the CSS Variable name, and keeps it in--camelCase
formatDemo
Versions:
react@16.8.6
&react-dom@16.8.6
react@16.0.0
&react-dom@16.0.0
Other notes:
ReactDOM.render
is preserving the CSS Variable name and not mutating it. It only seems to only be an issue withReactDOMServer.renderToString
The text was updated successfully, but these errors were encountered: