W3C home > Mailing lists > Public > public-fxtf-archive@w3.org > November 2018

Re: [fxtf-drafts] [css-transforms-2] How to serialize `scale` if we only use one number?

From: Boris via GitHub <sysbot+gh@w3.org>
Date: Fri, 02 Nov 2018 21:56:40 +0000
To: public-fxtf-archive@w3.org
Message-ID: <issue_comment.created-435521128-1541195798-sysbot+gh@w3.org>
Thanks for this. :).

Actually, there is another question for this. If we use 3 numbers, but the last one is "1",
e.g.
```
scale: 2 2 1;
```
Chrome and Firefox serialize this as `2 2`, instead of `2 2 1`. This is also because "prefer shorter serializations when possible"? Using 3 numbers means you want to use it as `scale3d()`. However, if we serialize it as `2 2`, this may be pretty hard to understand the intention of the author. Anyway, either way is ok to me.

-- 
GitHub Notification of comment by BorisChiou
Please view or discuss this issue at https://github.com/w3c/fxtf-drafts/issues/313#issuecomment-435521128 using your GitHub account
Received on Friday, 2 November 2018 21:56:41 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 November 2018 00:46:02 UTC