Open the attached test case. Result: A red rectangle is rendered. Expected: A green rectangle is rendered. This bug happens because twe call beginElement/endElement with the same time offset on the <set> element. If we omit calling endElement(), the bug does not happen.
Created attachment 375129 [details] test case
Failed WPT test: http://web-platform-tests.live/svg/animations/scripted/end-element-on-inactive-element.svg
It is still failing in Safari 16.2 & STP161. Added 'WPTImpact' keyword and link to testcase from WPT.
Blink Commit: https://chromium-review.googlesource.com/c/chromium/src/+/1400663