summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/web-animations/animation-model/side-effects-of-animations-current-ref.html
blob: acc0465b074c2dddfeb1ac427d49a55e5dcecd64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!DOCTYPE html>
<title>
  Current animations should effectively apply will-change (i.e. force a
  stacking context) (ref)
</title>
<link rel="help" href="https://drafts.csswg.org/web-animations-1/#side-effects-section">
<link rel="author" href="mailto:bokan@chromium.org">
<style>
  .testcase {
    position: relative;
    margin: 2px;
    border: 1px solid black;
    width: 250px;
    height: 25px;
  }
  .label {
    flex-grow: 1;
  }
  .container {
    background-color: lightgrey;
    margin: 4px;
    display: flex;
    width: 600px;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
  }
  .pass {
    width: 100%;
    height: 100%;
    background-color: limegreen;
  }
</style>

<!-- OPACITY -->

<!-- Is current - before phase playing forwards -->
<div class="container">
  <div class="label">Opacity - before phase</div>
  <div class="testcase" id="opacity-before">
    <div class="pass"></div>
  </div>
</div>

<!-- Is current - in play-->
<div class="container">
  <div class="label">Opacity - active phase</div>
  <div class="testcase" id="opacity-active">
    <div class="pass"></div>
  </div>
</div>

<!-- Is current - after phase playing backwards-->
<div class="container">
  <div class="label">Opacity - after phase</div>
  <div class="testcase" id="opacity-after">
    <div class="pass"></div>
  </div>
</div>

<!-- TRANSFORM -->

<!-- Is current - before phase playing forwards -->
<div class="container">
  <div class="label">Transform - before phase</div>
  <div class="testcase" id="transform-before">
    <div class="pass"></div>
  </div>
</div>

<!-- Is current - in play-->
<div class="container">
  <div class="label">Transform - active phase</div>
  <div class="testcase" id="transform-active">
    <div class="pass"></div>
  </div>
</div>

<!-- Is current - after phase playing backwards-->
<div class="container">
  <div class="label">Transform - after phase</div>
  <div class="testcase" id="transform-after">
    <div class="pass"></div>
  </div>
</div>

<!-- BACKGROUND COLOR -->
<div class="container">
  <div class="label">Background-color - before phase</div>
  <div class="testcase" id="bgcolor-before">
    <div class="pass"></div>
  </div>
</div>

<!-- Is current - in play-->
<div class="container">
  <div class="label">Background-color - active phase</div>
  <div class="testcase" id="bgcolor-active">
    <div class="pass"></div>
  </div>
</div>

<!-- Is current - after phase playing backwards-->
<div class="container">
  <div class="label">Background-color - after phase</div>
  <div class="testcase" id="bgcolor-after">
    <div class="pass"></div>
  </div>
</div>