Skip to content

[css-values][cssom] Clarify: parsing missing ending parentheses with CSS functions #7106

@noamr

Description

@noamr

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...)

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