- From: Eric Willigers via GitHub <sysbot+gh@w3.org>
- Date: Sat, 03 Nov 2018 03:19:23 +0000
- To: public-fxtf-archive@w3.org
Suppose we are animating `scale` from "2 1" to "2 3". At the animation midpoint, should the `getComputedStyle()` output have a discontinuity with "2" instead of "2 2" ? I suggest not. Similarly, I would suggest that changing the specified value from "2" to "2 2" should not trigger a transition. Therefore I would suggest that `getComputedStyle()` always return two numbers (or three if we have a 3D scale). For the specified value, I would suggest avoiding discontinuities by returning exactly as many numbers as were supplied. Thus my suggestion is "2" stays "2" and "2 2" stays "2 2". The same arguments apply for `translate`. > `scale: 2 2 1;` > Chrome and Firefox serialize this as `2 2`, instead of `2 2 1`. Implementation(s) and WPT predate the [spec change](https://github.com/w3c/csswg-drafts/commit/48f19e8c923115af8334594a0ee79fb342c2a731#diff-7a1256a4a031b8446dd0fba783bfe17d) about 2d or 3d scaling. As Tab points out, it should be `2 2 1`. -- GitHub Notification of comment by ewilligers Please view or discuss this issue at https://github.com/w3c/fxtf-drafts/issues/313#issuecomment-435556308 using your GitHub account
Received on Saturday, 3 November 2018 03:19:24 UTC