2 <script src=
"../resources/testharness.js"></script>
3 <script src=
"../resources/testharnessreport.js"></script>
4 <div id=
"target">Test target
</div>
6 var target
= document
.getElementById('target');
8 var player
= target
.animate([{background
: 'green'}, {background
: 'green'}], 10000);
9 assert_equals(getComputedStyle(target
).backgroundColor
, 'rgb(0, 128, 0)');
11 }, 'Animation effects should be visible to getComputedStyle');
13 var layoutTest
= async_test('Animation effects should be visible to offsetHeight, etc.');
14 addEventListener('load', function() {
15 layoutTest
.step(function() {
16 var player
= target
.animate([{height
: '732px'}, {height
: '732px'}], 10000);
17 assert_equals(target
.offsetHeight
, 732);