Skip to content

Bug: React DOM Server is mutating CSS variable names #16160

Closed
@rdhaliwal

Description

@rdhaliwal

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 format

Demo

Versions:

Other notes:

  • 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions