mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
Update web-platform-tests to revision f0cb9071aea5ce5b641fcba5f362a0796bdc70bc
This commit is contained in:
parent
0d549e8146
commit
7289e837fd
558 changed files with 8627 additions and 6619 deletions
|
@ -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(
|
||||
|
|
|
@ -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':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue