When setting a CSS function via JS that is missing its ending parentheses ), the value is accepted in all browsers. It is not specified anywhere to my knowledge.
For example:
someElement.style.transform = 'rotate(45deg' works.
If this shouldn't be valid, it should probably be fixed.
If this should be valid or we have to keep it valid for backwards compat, let's put it in the spec.
See this codepen
(Apologies if this is a really old issue, please mark as duplicate of something if it is...)