Skip to content

[css-transforms] Named rotation axis #2130

@Crissov

Description

@Crissov

https://drafts.csswg.org/css-transforms-2/#individual-transforms

rotate: none | <number>{3}? <angle>

The default values for the numbers are 0 0 1 to get a planar 2D transform. I believe it would be cleaner and perhaps more readable if the axes had keywords: either x, y and z or horizontal, vertical and ?.

I’m less sure whether translate should also support positional keywords like top, right, bottom, left, center, start, end. That would make this property even more similar to position: relative etc.

I understand that the three properties are named to match the functions in transform inherited. Consistency with those is probably more important than keeping with the general nomenclature used in CSS which prefers nouns over verbs for property names (i.e. rotation etc.).

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