W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2017

[csswg-drafts] [css-transforms-2] `scale` property behavior differs from `scale()` function

From: Brian Birtles via GitHub <sysbot+gh@w3.org>
Date: Thu, 14 Dec 2017 12:19:13 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-282081670-1513253952-sysbot+gh@w3.org>
birtles has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-transforms-2] `scale` property behavior differs from `scale()` function ==
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 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2109 using your GitHub account
Received on Thursday, 14 December 2017 12:19:14 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:21 UTC