• Eric Willigers's avatar
    Fix flaky unanimated-style.html · 25818e61
    Eric Willigers authored
    animations/unanimated-style.html was using setTimout(0) to wait for the
    initial style calculations
    before starting the animation. This isn't a reliable method.
    
    We now force style recalc explicitly by reading an element's offsetTop.
    
    BUG=770362
    
    Change-Id: Icf518b3a43b51d854de81cc2fab371922e271e16
    Reviewed-on: https://chromium-review.googlesource.com/699974Reviewed-by: default avatarAli Juma <ajuma@chromium.org>
    Commit-Queue: Eric Willigers <ericwilligers@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#506497}
    25818e61
TestExpectations 325 KB