-
Notifications
You must be signed in to change notification settings - Fork 49.9k
Closed
Description
Do you want to request a feature or report a bug?
Bug
Current Behaviour
ReactDOMServer.renderToStringis mutating CSS Variable names that are inlined and in the--camelCaseformat into--kebab-case
Expected Behaviour
ReactDOMServer.renderToStringdoes not mutate the CSS Variable name, and keeps it in--camelCaseformat
Demo
Versions:
- Issue appears in
react@16.8.6&react-dom@16.8.6 - Issue appears in
react@16.0.0&react-dom@16.0.0 - (That's all I've tested so far)
Other notes:
- It's worth noting that
ReactDOM.renderis preserving the CSS Variable name and not mutating it. It only seems to only be an issue withReactDOMServer.renderToString
brunolemos