Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAnimations should stop until the next turn of the event loop if script reads layout properties #5533
Comments
|
@pcwalton Wasn't this fixed? |
|
I do not believe we have any code that stops animations from progressing if script performs a layout query. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
roc pointed out a potential web-compat problem in off-main-thread animations. This could fail in Servo, whereas it succeeds in all other browser engines:
This is because the animation refresh could tick in between
let r0 = ...andlet r1 = ...and mess with the layout.The easiest way to fix this is to stop all animations until the next turn of the event loop if script performs layout queries.