mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-23 17:07:31 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
|
|
@ -0,0 +1,45 @@
|
|||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
<script src="../testcommon.js"></script>
|
||||
<style>
|
||||
.init::before {
|
||||
content: '';
|
||||
height: 0px;
|
||||
width: 0px;
|
||||
opacity: 0;
|
||||
transition: all 100s;
|
||||
}
|
||||
.change::before {
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
opacity: 1;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<script>
|
||||
'use strict';
|
||||
|
||||
test(function(t) {
|
||||
var div = addDiv(t, { class: 'init' });
|
||||
flushComputedStyle(div);
|
||||
div.classList.add('change');
|
||||
|
||||
// Sanity checks
|
||||
assert_equals(document.getAnimations().length, 3,
|
||||
'Got expected number of animations on document');
|
||||
var pseudoTarget = document.getAnimations()[0].effect.target;
|
||||
assert_class_string(pseudoTarget, 'CSSPseudoElement',
|
||||
'Got pseudo-element target');
|
||||
|
||||
// Check animations returned from the pseudo element are in correct order
|
||||
var anims = pseudoTarget.getAnimations();
|
||||
assert_equals(anims.length, 3,
|
||||
'Got expected number of animations on pseudo-element');
|
||||
assert_equals(anims[0].transitionProperty, 'height');
|
||||
assert_equals(anims[1].transitionProperty, 'opacity');
|
||||
assert_equals(anims[2].transitionProperty, 'width');
|
||||
}, 'getAnimations sorts simultaneous transitions by name');
|
||||
|
||||
done();
|
||||
</script>
|
||||
</body>
|
||||
Loading…
Add table
Add a link
Reference in a new issue