Update web-platform-tests to revision b'2d7c53f5bc604132d2c83955537e454ee9c788c0'

This commit is contained in:
WPT Sync Bot 2023-01-18 01:45:07 +00:00
parent 619a46113f
commit 1c6b303ef2
396 changed files with 29611 additions and 1967 deletions

View file

@ -295,4 +295,47 @@ test(() => {
});
}, 'No transition when removing @property rule');
test_with_at_property({
syntax: '"<length>"',
inherits: false,
initialValue: '0px'
}, (name) => {
with_style_node(`
@keyframes test {
from { ${name}: 100px; }
to { ${name}: 200px; }
}
#div {
animation: test 100s -50s linear;
--unregistered: var(${name});
}
`, () => {
assert_equals(getComputedStyle(div).getPropertyValue('--unregistered'), '150px');
});
}, 'Unregistered properties referencing animated properties update correctly.');
test_with_at_property({
syntax: '"<length>"',
inherits: false,
initialValue: '0px'
}, (name) => {
with_style_node(`
@keyframes test {
from { ${name}: 100px; }
to { ${name}: 200px; }
}
@property --registered {
syntax: "<length>";
inherits: false;
initialValue: 0px;
}
#div {
animation: test 100s -50s linear;
--registered: var(${name});
}
`, () => {
assert_equals(getComputedStyle(div).getPropertyValue('--registered'), '150px');
});
}, 'Registered properties referencing animated properties update correctly.');
</script>