11 border:
1px solid black;
12 -webkit-transition: background-color
1s linear;
13 -moz-transition: background-color
1s linear;
17 background-color: transparent;
21 background-color: green;
25 background-color: rgba(
0,
255,
0,
0);
29 background-color: rgba(
0,
0,
255,
1);
32 <script src=
"../animations/resources/animation-test-helpers.js"></script>
33 <script type=
"text/javascript">
34 const expectedValues
= [
35 // [time, element-id, property, expected-value, tolerance]
36 [0.5, 'one', 'background-color', "rgba(0, 127, 0, 0.5)", 2],
37 [0.5, 'two', 'background-color', "rgba(0, 0, 255, 0.5)", 2]
42 document
.getElementById('one').className
= 'box changed';
43 document
.getElementById('two').className
= 'box changed';
46 runTransitionTest(expectedValues
, setupTest
);
51 <div class=
"box" id=
"one">
54 <div class=
"box" id=
"two">