Respect transform order in CSS animation
Any order of transformation functions can be declared in "transform"
property in a CSS style, which means they have to be applied one
after another from right to left. Moreover, the same function can be
declared more than once in that list and they have to be taken into
account. QSvgAnimator did not respect this order and always collected
all the values and applied transformations in this order :
Skew->Scale->Rotate->Translate
Change-Id: Ibf598431d451240d307dc5adccb5786c22216ca9
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
| commit | ecbf87890dd446e8e7b4e6f52db89a94b071e4df |
| parent | 021ad837866cfb3c98e0bca142c7c2c5a5736688 |
| author | Hatem ElKharashy <hatem.elkharashy@qt.io> |
| committer | Hatem ElKharashy <hatem.elkharashy@qt.io> |
| commit time | Thu, 24 Apr 2025 16:17:10 +0300 |
- M src/svg/animation/qsvganimatedproperty.cpp
- M src/svg/animation/qsvganimatedproperty_p.h
- M src/svg/css/qsvgcsshandler.cpp
- M src/svg/css/qsvgcsshandler_p.h
- M src/svg/qsvghandler.cpp
- A tests/baseline/data/animations/css_animate_transform_list_length.svg
- A tests/baseline/data/animations/css_animate_transform_list_order.svg
- A tests/baseline/data/animations/css_animate_transform_list_order2.svg