summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/svg/animations/svg-style-animate-crash.html
blob: 0ed2140617d2ef6dd0edd1f821de8410664e7bca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<title>Starting a CSS Animation and Web Animation at the same time on SVG style elements</title>
<link rel="help" href="https://crbug.com/1264236">
<style>
  @keyframes anim {
    from { color: green; }
    to { color: red; }
  }

  #target {
    animation: anim 1s linear;
  }
</style>
<svg>
  <style id=target>Test</style>
</svg>
<script>
  addEventListener('load', () => {
    target.animate({'top': ['0px', '10px']}, 1000);
    target.offsetTop;
  });
</script>