Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8f10937bfed77edde600b06f5836563271deb07b
https://github.com/WebKit/WebKit/commit/8f10937bfed77edde600b06f5836563271deb07b
Author: Karl Dubost <[email protected]>
Date: 2026-06-19 (Fri, 19 Jun 2026)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/svg/animations/svgtransform-animation-1.html
A
LayoutTests/imported/w3c/web-platform-tests/svg/resources/svg-transform-equals.js
Log Message:
-----------
Add a WPT helper to compare SVGTransform objects
https://bugs.webkit.org/show_bug.cgi?id=317457
rdar://180088995
Reviewed by Rob Buis.
Add `assert_svg_transform_equals(actual, expected, epsilon, description)`
under `svg/resources/`.
You can use it two ways:
1. With an SVGTransform built via the DOM API:
const expected = svg.createSVGTransform();
expected.setTranslate(50, 0);
assert_svg_transform_equals(text.transform.animVal.getItem(0), expected
2. With a literal descriptor object (no createSVGTransform boilerplate):
assert_svg_transform_equals(text.transform.animVal.getItem(0),
{translate: [50, 0]});
/svg/animations/svgtransform-animation-1.html has been converted to use
this new helper as a proof of concept. We could migrate the old tests
in a future PR. And we can start using the new method right away for new
tests.
Thanks to Rob Buis for voicing the need for it.
*
LayoutTests/imported/w3c/web-platform-tests/svg/animations/svgtransform-animation-1.html:
*
LayoutTests/imported/w3c/web-platform-tests/svg/resources/svg-transform-equals.js:
Added.
(assert_svg_transform_equals):
(svg_transform_from_descriptor):
Canonical link: https://commits.webkit.org/315538@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications