Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The reftest will be timeout with unfinished css-animations. #17335

Open
mantaroh opened this issue Jun 15, 2017 · 1 comment
Open

The reftest will be timeout with unfinished css-animations. #17335

mantaroh opened this issue Jun 15, 2017 · 1 comment

Comments

@mantaroh
Copy link
Contributor

@mantaroh mantaroh commented Jun 15, 2017

In #17288, I faced that the reftest will be timeout with unfinished animation. Even if we use reftest-wait, servo will not stop the reftest.

For example, if we run following example reftest, reftest can't stop since animation is unfinished.(animation is paused)

<html class="reftest-wait">
 <style>
    @keyframes anim {
        from { background-color: red; }
        to { background-color: blue; }
    }
 </style>
 <body>
  <div style="animation: anim 1s paused;  width: 100px; height: 100px"></div>
  <script>
    requestAnimationFrame(function() {
        document.documentElement.classList.remove("reftest-wait");
    });
  </script>
 </body>
</html>
@jdm
Copy link
Member

@jdm jdm commented Jun 15, 2017

The compositor will not output a screenshot if any document contains non-expired animations: https://dxr.mozilla.org/servo/rev/b0392dbf39d36f19cd16ec06e29b6aca6e6135e2/components/compositing/compositor.rs#1390-1397

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.