8000 [css-transforms-2] `scale` property behavior differs from `scale()` function · Issue #2109 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

[css-transforms-2] scale property behavior differs from scale() function #2109

@birtles

Description

@birtles

This is basically just re-opening issue #856 but without the focus being interop.

transform: scale(2)

is equivalent to transform: scale(2, 2), i.e. scaling both x/y.

scale: 2

is equivalent to transform: scale(2, 1), i.e. scaling x only.

That seems inconsistent and surprising. I've yet to meet anyone who expects that scale: 2 scales in only x.

I understand that scale can be used for 3D transforms, but scale3d() requires three arguments so I don't think there's any parallel between the arguments used there and here.

CC: @ewilligers @FremyCompany @gregwhitworth

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