The code in the PR modifies the camel case transformation so that CSS custom property names are not transformed.
(The transformation is suppressed everywhere, not only for the style attribute; if you prefer, I can submit a PR with a special camel-case variant just for the style attribute).
React supports CSS Custom Properties in the style attribute facebook/react#6411
CSS custom properties are represented by names starting with '--' https://developer.mozilla.org/en-US/docs/Web/CSS/--*
The code in the PR modifies the camel case transformation so that CSS custom property names are not transformed. (The transformation is suppressed everywhere, not only for the
style
attribute; if you prefer, I can submit a PR with a specialcamel-case
variant just for thestyle
attribute).