mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision b'2d7c53f5bc604132d2c83955537e454ee9c788c0'
This commit is contained in:
parent
619a46113f
commit
1c6b303ef2
396 changed files with 29611 additions and 1967 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue