mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 4a5223502fa660ce03e470af6a61c8bc26c5a8ee
This commit is contained in:
parent
c5f7c9ccf3
commit
e891345f26
1328 changed files with 36632 additions and 20588 deletions
|
@ -88,7 +88,7 @@ function createStyle(test, rules, doc) {
|
|||
}
|
||||
|
||||
// Create a pseudo element
|
||||
function createPseudo(test, type) {
|
||||
function getPseudoElement(test, type) {
|
||||
createStyle(test, { '@keyframes anim': '',
|
||||
[`.pseudo::${type}`]: 'animation: anim 10s; ' +
|
||||
'content: \'\';' });
|
||||
|
@ -97,8 +97,6 @@ function createPseudo(test, type) {
|
|||
const anims = document.getAnimations();
|
||||
assert_true(anims.length >= 1);
|
||||
const anim = anims[anims.length - 1];
|
||||
assert_equals(anim.effect.target.parentElement, div);
|
||||
assert_equals(anim.effect.target.type, `::${type}`);
|
||||
anim.cancel();
|
||||
return anim.effect.target;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue