8000 [css-transforms-1] Browsers do not implement transform attribute syntax as described by w3c · Issue #2623 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

[css-transforms-1] Browsers do not implement transform attribute syntax as described by w3c #2623

@longsonr

Description

@longsonr

Per https://www.w3.org/TR/css-transforms-1/#svg-functional-notation or the earlier https://www.w3.org/TR/SVG11/coords.html#TransformAttribute
All transform arguments need to be separated by whitespace and/or a comma, however no browser implements this restriction. All browsers (tested Edge, Firefox, Chrome and Safari) parse transform arguments like path values i.e. 5-5 is valid and parsed as 5, -5

Firefox thought about fixing this in https://bugzilla.mozilla.org/show_bug.cgi?id=1449075 but we've chickened out. Chrome has https://bugs.chromium.org/p/chromium/issues/detail?id=577219 but doesn't seem to have done anything with it.

I'm prepared to reland the Firefox fix if there's going to be a concerted effort to fix all browsers, otherwise shouldn't the spec simply reflect reality here.

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

      0