According to the official spec, CSSStyleDeclaration.setProperty()'s propertyName parameter is the CSS property name in hyphen case/dash-case. The current implementation sets the style for camelCase names too, which is not consistent with the browser behavior.
This isn't a nit-pick, it's an actual issue that's bleeding into JSDOM and causing unexpected behavior in testing environments for me, and I'm sure for other users too.
I'm willing to fix this myself, would you accept a PR ?
According to the official spec,
CSSStyleDeclaration.setProperty()
'spropertyName
parameter is the CSS property name in hyphen case/dash-case. The current implementation sets the style for camelCase names too, which is not consistent with the browser behavior.This isn't a nit-pick, it's an actual issue that's bleeding into JSDOM and causing unexpected behavior in testing environments for me, and I'm sure for other users too.
I'm willing to fix this myself, would you accept a PR ?