Update web-platform-tests to revision f0cb9071aea5ce5b641fcba5f362a0796bdc70bc

This commit is contained in:
WPT Sync Bot 2019-11-23 08:37:37 +00:00
parent 0d549e8146
commit 7289e837fd
558 changed files with 8627 additions and 6619 deletions

View file

@ -299,6 +299,18 @@ test(t => {
assert_equals(getComputedStyle(div).marginRight, '50px');
}, 'Animations update when the direction is changed');
test(t => {
const div = addDiv(t);
const anim = div.animate(
{
insetBlock: ['var(--200px)', 'var(--300px)'],
},
1000
);
anim.currentTime = 500;
assert_equals(getComputedStyle(div).insetBlockStart, '250px');
}, 'Logical shorthand with variable references animates correctly');
test(t => {
const div = addDiv(t);
const anim = div.animate(

View file

@ -196,6 +196,19 @@ test(t => {
assert_equals(getComputedStyle(div).height, '0px');
}, 'Animations update when the writing-mode is changed through a CSS variable');
test(t => {
addStyle(t, { ':root': '--200px: 200px; --300px: 300px' });
addStyle(t, {
'@keyframes anim': 'from { inset-block: var(--200px) } to { inset-block: var(--300px) }',
});
const div = addDiv(t, {
style:
'animation: anim 10s -5s paused linear;'
+ ' width: 0px; height: 0px;'
});
assert_equals(getComputedStyle(div).insetBlockStart, '250px');
}, 'Logical shorthand with variable references animates correctly');
test(t => {
addStyle(t, {
'@keyframes anim':