Update web-platform-tests to revision b'bcf4a27c0a9dbb07d974a880acb26eb289a85c7e'

This commit is contained in:
WPT Sync Bot 2023-02-17 01:49:27 +00:00
parent 293c8623fa
commit 61b963c73e
183 changed files with 3880 additions and 1012 deletions

View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<link rel="help" href="https://drafts.css-houdini.org/css-properties-values-api-1">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../resources/utils.js"></script>
<div id="target"></div>
<script>
transition_test({
syntax: "<length>",
from: "100px",
to: "200px",
expected: "150px",
transitionProperty: "all"
}, 'A custom property can yield a CSS Transition with transition-property: all');
</script>

View file

@ -183,6 +183,8 @@ function transition_test(options, description) {
promise_test(async () => {
const customProperty = generate_name();
options.transitionProperty ??= customProperty;
CSS.registerProperty({
name: customProperty,
syntax: options.syntax,
@ -199,7 +201,7 @@ function transition_test(options, description) {
});
});
target.style.transition = `${customProperty} 1s -500ms linear`;
target.style.transition = `${options.transitionProperty} 1s -500ms linear`;
target.style.setProperty(customProperty, options.to);
const animations = target.getAnimations();