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 rotate is present.
36 The
3 squares should equivalently rotate. They need not be perfectly in time.
38 Blue - Only Transform, Red - Only Rotate, Purple - Transform + Rotate
45 var div1
= document
.getElementById('div1');
46 var div2
= document
.getElementById('div2');
47 var div3
= document
.getElementById('div3');
49 function startAnimations() {
51 {transform
: 'rotate3d(1, 1, 0, 0deg)'},
52 {transform
: 'rotate3d(1, 1, 0, 720deg)'}
60 {rotate
: '0deg 1 1 0'},
61 {rotate
: '720deg 1 1 0'}
69 {transform
: 'rotate3d(1, 1, 0, 0deg)',
70 rotate
: '0deg 1 1 0'},
71 {transform
: 'rotate3d(1, 1, 0, 360deg)',
72 rotate
: '360deg 1 1 0'}
80 requestAnimationFrame(startAnimations
);