Make svg/painting/reftests/non-scaling-stroke-002.html less timing sensitive
Replace the nested rAFs with waiting for an 'animationend' event before
taking the screenshot.
Bug: 344437951
Change-Id: Id0e90b4d8c2f70cd6866e1daa715c87ef3ac8a69
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5587744
Commit-Queue: Philip Rogers pdr@chromium.org
Auto-Submit: Fredrik Söderquist fs@opera.com
Reviewed-by: Philip Rogers pdr@chromium.org
Cr-Commit-Position: refs/heads/main@{#1310577}