[Webkit-unassigned] [Bug 228896] CSS animation timing is broken when animating from scaleX(0) to scale(1)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 12 17:20:06 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=228896

--- Comment #10 from evan.exe at gmail.com ---
> A small scale would work. You could also use scale(x, y) or scaleX(x) in both keyframes.

Yes, but the problem is that CSS minifiers convert "scaleX(1)" into "scale(1)" and "scale(0, 1)" into "scaleX(0)", which prevents using both "scale" or both "scaleX" in this case if you're using a CSS minifier. See this code for example: https://github.com/cssnano/cssnano/blob/04bd16e9de5e2d4409fef74034edb7534cd9e457/packages/postcss-reduce-transforms/src/index.js#L93-L123.

I believe that this CSS minification transformation is valid since these I'd expect for these forms to generate the equivalent matrix (i.e. "scaleX(0) == scale(0, 1)" and "scaleX(1) == scale(1, 1)"). Please let me know if that's not a valid CSS minification transformation and I can file an issue with the relevant CSS minifiers.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210813/9586d69b/attachment-0001.htm>


More information about the webkit-unassigned mailing list