diff --git a/css/css-animations/CSSAnimation-compositeOrder.tentative.html b/css/css-animations/CSSAnimation-compositeOrder.tentative.html index ee204db792666f1..d55db9a2d117f54 100644 --- a/css/css-animations/CSSAnimation-compositeOrder.tentative.html +++ b/css/css-animations/CSSAnimation-compositeOrder.tentative.html @@ -42,9 +42,9 @@ const animA = div.animate({margin: ["100px","100px"]}, 100000); assert_equals(getComputedStyle(div).marginLeft, '100px'); div.style.animation = 'margin50 100s'; - assert_equals(getComputedStyle(div).marginLeft, '50px'); // Wait for animation starts - await waitForAnimationFrames(2); + await animA.ready; + await waitForAnimationFrames(1); assert_equals(getComputedStyle(div).marginLeft, '100px', "A higher-priority animation is not overriden by a more recent" + "one.");