You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is currently no consensus between browsers as to how a three-valued rotate operation in a transform presentation attribute is handled in CSS transitions. Currently, chrome interpolates parameters separately, and firefox doesn't transition. As this function is unreperesentable in CSS, chrome's behavior is incompatible with the addition of getKeyframes to transitions.
Since this operation does not contain relative lengths, I would propose computing the operation as a matrix() value for the purposes of transitions and css-typed-om as this interpolates reasonably closely to chrome's existing behavior ans the unimplemented specced version (compute the operation and its neighbors to matrix) and is much less magical and easier to implement (it still forces matrix interpolation).
The text was updated successfully, but these errors were encountered:
Fix DCHECK failure which occurred when attempting to serialize such an
operation, which can occur due to the SVG transform presentation
attribute and is unreperesentable in CSS. As there is currently no
consensus on how to handle this case and there are no relatice lengths
in such operations, I am computing them as matrix() values.
See the CSSWG issue at w3c/csswg-drafts#5011
to determine the correct way to handle this. I have proposed the
approach used here.
Add regression test (crashes without patch).
Change-Id: Ia116ead6c451cafc6fb222be3bb52362123bae3d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2163758
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Reviewed-by: Kevin Ellis <kevers@chromium.org>
Commit-Queue: George Steel <gtsteel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#763427}
There is currently no consensus between browsers as to how a three-valued rotate operation in a transform presentation attribute is handled in CSS transitions. Currently, chrome interpolates parameters separately, and firefox doesn't transition. As this function is unreperesentable in CSS, chrome's behavior is incompatible with the addition of getKeyframes to transitions.
Since this operation does not contain relative lengths, I would propose computing the operation as a matrix() value for the purposes of transitions and css-typed-om as this interpolates reasonably closely to chrome's existing behavior ans the unimplemented specced version (compute the operation and its neighbors to matrix) and is much less magical and easier to implement (it still forces matrix interpolation).
The text was updated successfully, but these errors were encountered: