LibWeb: Allow multiple values for the transition-delay property

This commit is contained in:
Tim Ledbetter 2025-04-17 12:25:08 +01:00 committed by Sam Atkins
commit 1ca9f2a44d
Notes: github-actions[bot] 2025-04-23 20:04:09 +00:00
4 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,9 @@
Harness status: OK
Found 4 tests
4 Pass
Pass e.style['transition-delay'] = "0s" should set the property value
Pass e.style['transition-delay'] = "500ms" should set the property value
Pass e.style['transition-delay'] = "1s, 2s" should set the property value
Pass e.style['transition-delay'] = "-1s, -2s" should set the property value

View file

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Transitions: parsing transition-delay with valid values</title>
<link rel="help" href="https://drafts.csswg.org/css-transitions/#propdef-transition-delay">
<meta name="assert" content="transition-delay supports the full grammar '<time> #'.">
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
<script src="../../../css/support/parsing-testcommon.js"></script>
</head>
<body>
<script>
test_valid_value("transition-delay", '0s');
test_valid_value("transition-delay", '500ms');
test_valid_value("transition-delay", '1s, 2s');
test_valid_value("transition-delay", '-1s, -2s');
</script>
</body>
</html>