W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2019

Re: [csswg-drafts] [css-transforms-2] Is it necessary to serialize all 3 components of translate given the 3rd component is 0px (#3305)

From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
Date: Wed, 09 Oct 2019 22:37:30 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-540234853-1570660649-sysbot+gh@w3.org>
> That doesn't happen, at least in Blink. We detect that the property is animating.

I assume your detection doesn't cover JS animations. So all JS animations would need to use `will-change`. But `will-change` doesn't really have defined behavior when it comes to which optimizations it uses for transformations. There's no way to say "will change to 3D" as opposed to "will change in scale" or "will change in position".

Even for CSS animations, it goes against general CSS behavior if pausing/freezing an animation at a translate Z of 0px has a different rendering compared to setting that transformation directly.

Worth mentioning as well, that for SVG there are some spec'd differences in behavior/validity for 2D vs 3D transformations (although implementations aren't all on board, e.g. for z-index).

GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3305#issuecomment-540234853 using your GitHub account
Received on Wednesday, 9 October 2019 22:37:31 UTC

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