mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 89aa3f42131cce5a77268ddaeb2fab8a2e29c2a6
This commit is contained in:
parent
39963266ae
commit
ea00d34098
392 changed files with 5974 additions and 7614 deletions
|
@ -87,23 +87,6 @@ function createStyle(test, rules, doc) {
|
|||
});
|
||||
}
|
||||
|
||||
// Create a pseudo element
|
||||
function getPseudoElement(test, type) {
|
||||
createStyle(test, { '@keyframes anim': '',
|
||||
[`.pseudo::${type}`]: 'animation: anim 10s; ' +
|
||||
'content: \'\';' });
|
||||
const div = createDiv(test);
|
||||
if (type == 'marker') {
|
||||
div.style.display = 'list-item';
|
||||
}
|
||||
div.classList.add('pseudo');
|
||||
const anims = document.getAnimations();
|
||||
assert_true(anims.length >= 1);
|
||||
const anim = anims[anims.length - 1];
|
||||
anim.cancel();
|
||||
return anim.effect.target;
|
||||
}
|
||||
|
||||
// Cubic bezier with control points (0, 0), (x1, y1), (x2, y2), and (1, 1).
|
||||
function cubicBezier(x1, y1, x2, y2) {
|
||||
const xForT = t => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue