{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/fxtf-drafts/issues/313","repository_url":"https://api.github.com/repos/w3c/fxtf-drafts","labels_url":"https://api.github.com/repos/w3c/fxtf-drafts/issues/313/labels{/name}","comments_url":"https://api.github.com/repos/w3c/fxtf-drafts/issues/313/comments","events_url":"https://api.github.com/repos/w3c/fxtf-drafts/issues/313/events","html_url":"https://github.com/w3c/fxtf-drafts/issues/313","id":376959237,"node_id":"MDU6SXNzdWUzNzY5NTkyMzc=","number":313,"title":"[css-transforms-2] How to serialize `scale` if we only use one number?","user":{"login":"BorisChiou","id":1914903,"node_id":"MDQ6VXNlcjE5MTQ5MDM=","avatar_url":"https://avatars3.githubusercontent.com/u/1914903?v=4","gravatar_id":"","url":"https://api.github.com/users/BorisChiou","html_url":"https://github.com/BorisChiou","followers_url":"https://api.github.com/users/BorisChiou/followers","following_url":"https://api.github.com/users/BorisChiou/following{/other_user}","gists_url":"https://api.github.com/users/BorisChiou/gists{/gist_id}","starred_url":"https://api.github.com/users/BorisChiou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BorisChiou/subscriptions","organizations_url":"https://api.github.com/users/BorisChiou/orgs","repos_url":"https://api.github.com/users/BorisChiou/repos","events_url":"https://api.github.com/users/BorisChiou/events{/privacy}","received_events_url":"https://api.github.com/users/BorisChiou/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2018-11-02T20:36:37Z","updated_at":"2018-11-09T07:31:09Z","closed_at":"2018-11-05T22:41:46Z","author_association":"NONE","body":"The spec [1] doesn't mention how to serialize the individual transforms. This may be fine but still not clear to me for the case:\r\n```\r\ndiv { \r\n  scale: 2;\r\n}\r\nconsole.log(window.getComputedStyle(div).scale); // serialize as \"2\" or \"2 2\"?\r\n```\r\nIf only the X value is given, the Y value defaults to the same value, and If one or two values are given, this specifies a 2d scaling, equivalent to the `scale()` function (i.e. scale(2, 2) in the above example). However, should we serialize it as \"2\" or \"2 2\"? For now, Chrome serializes this as \"2 2\", but Firefox serializes this as \"2\", so I think this is an ambiguous part. Maybe the shorter one is preferred?\r\n\r\n[1] https://drafts.csswg.org/css-transforms-2/#propdef-rotate\r\n"},"comment":{"url":"https://api.github.com/repos/w3c/fxtf-drafts/issues/comments/437274299","html_url":"https://github.com/w3c/fxtf-drafts/issues/313#issuecomment-437274299","issue_url":"https://api.github.com/repos/w3c/fxtf-drafts/issues/313","id":437274299,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzI3NDI5OQ==","user":{"login":"birtles","id":1232595,"node_id":"MDQ6VXNlcjEyMzI1OTU=","avatar_url":"https://avatars1.githubusercontent.com/u/1232595?v=4","gravatar_id":"","url":"https://api.github.com/users/birtles","html_url":"https://github.com/birtles","followers_url":"https://api.github.com/users/birtles/followers","following_url":"https://api.github.com/users/birtles/following{/other_user}","gists_url":"https://api.github.com/users/birtles/gists{/gist_id}","starred_url":"https://api.github.com/users/birtles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/birtles/subscriptions","organizations_url":"https://api.github.com/users/birtles/orgs","repos_url":"https://api.github.com/users/birtles/repos","events_url":"https://api.github.com/users/birtles/events{/privacy}","received_events_url":"https://api.github.com/users/birtles/received_events","type":"User","site_admin":false},"created_at":"2018-11-09T07:31:09Z","updated_at":"2018-11-09T07:31:09Z","author_association":"CONTRIBUTOR","body":"I believe that's WebKit/Blink specific behavior. `translateZ(0)` does not trigger layer creation in Gecko (hence why we introduced `will-change`--to give authors a cross-browser way of achieving that optimization).\r\n\r\nI wonder if it's necessary to preserve that quirk with the individual transform properties?"}}
{"actor":{"display_login":"birtles"}}