8 backface-visibility: visible;
16 background-color: blue;
22 background-color: red;
27 background-color: purple;
34 Tests that composited animation happens when only transform or only scale is present.
36 The
3 squares should equivalently scale. They need not be perfectly in time.
38 Blue - Only Transform, Red - Only Scale, Purple - Transform + Scale
45 var div1
= document
.getElementById('div1');
46 var div2
= document
.getElementById('div2');
47 var div3
= document
.getElementById('div3');
49 function startAnimations() {
51 {transform
: 'scale(1, 1)'},
52 {transform
: 'scale(4, 4)'}
69 {transform
: 'scale(1, 1)', scale
: '1 1'},
70 {transform
: 'scale(2, 2)', scale
: '2 2'}
78 requestAnimationFrame(startAnimations
);