[csswg-drafts] [css-properties-values-api] Interpolations for registered properties <transform-list>/<transform-function>/none (#9522)

lilles has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-properties-values-api] Interpolations for registered properties <transform-list>/<transform-function>/none ==
During code reviews for implementing interpolation of `<transform-function>` and `<transform-list>`, a question came up about `none` and also the compatibility of `<transform-function>` and `<transform-list>`.

My conclusion, which is matching Safari's implementation is that `none` is not magical, so that for a syntax `none|<transform-list>` or `none|<transform-function>`, `none` is not a transform value that can be interpolated to or from if the other end point is a `<transform-list>` (or function).

The other part is if you have a syntax `<transform-function>|<transform-list>`, you cannot interpolate between a single function and a list of functions. However, if you flip the syntax to `<transform-list>|<transform-function>`, the values will always match the first part, and they will interpolate. This matches the implementation in Safari and the in-progress implementation in Chrome.

This issue is to confirm my interpretation is correct. What can be confusing is that the spec says `<transform-function>` and `<transform-list>` should interpolate as the standard transform property.

@tabatkins @andruud @kevers-google 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9522 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 25 October 2023 14:14:21 UTC