25 lines
520 B
HTML
25 lines
520 B
HTML
|
<!doctype html>
|
||
|
<meta charset=utf-8>
|
||
|
<script src="../testcommon.js"></script>
|
||
|
<style>
|
||
|
@keyframes abc { }
|
||
|
</style>
|
||
|
<body>
|
||
|
<script>
|
||
|
'use strict';
|
||
|
|
||
|
test(function(t) {
|
||
|
var div = addDiv(t);
|
||
|
div.style.animation = 'abc 100s';
|
||
|
var animation = div.getAnimations()[0];
|
||
|
assert_equals(animation.id, '', 'id for CSS Animation is initially empty');
|
||
|
animation.id = 'anim'
|
||
|
|
||
|
assert_equals(animation.id, 'anim', 'animation.id reflects the value set');
|
||
|
}, 'Animation.id for CSS Animations');
|
||
|
|
||
|
done();
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|