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

Re: [csswg-drafts] [css-transforms] Smarter interpolation of truncated transform lists

From: alancutter via GitHub <sysbot+gh@w3.org>
Date: Mon, 06 Feb 2017 00:16:35 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-277562070-1486340193-sysbot+gh@w3.org>
This seems to be the key suggestion from the linked thread.
> I wonder if we could take this a bit further - rather than just
removing identical prefixes (where both the functions and arguments
match), we could find the prefix that just has functions matching,
with potentially different arguments.  Then we can interpolate that
common prefix normally, and run the rest of the two states back
through the list again as you describe, either matching the remainder
up with identity transforms or mashing the remainder up into a matrix.

My interpretation of this is that `translateX(100px) scaleX(2) 
rotateX(90deg)` interpolating with `translateY(100px) scaleY(2) 
rotateY(90deg)` would use pairwise function interpolation for 
`translate` and `scale` and use post multiplied matrix interpolation 
for `rotate`.

-- 
GitHub Notification of comment by alancutter
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/927#issuecomment-277562070 
using your GitHub account
Received on Monday, 6 February 2017 00:16:41 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:30:28 UTC