LibWeb: Validate time values when parsing transition value

This commit is contained in:
Tim Ledbetter 2025-03-12 17:56:04 +00:00 committed by Jelle Raaijmakers
commit 6298ec6be4
Notes: github-actions[bot] 2025-03-14 07:53:28 +00:00
3 changed files with 46 additions and 3 deletions

View file

@ -0,0 +1,11 @@
Harness status: OK
Found 5 tests
3 Pass
2 Fail
Pass e.style['transition'] = "1s 2s 3s" should not set the property value
Pass e.style['transition'] = "-1s -2s" should not set the property value
Pass e.style['transition'] = "steps(1) steps(2)" should not set the property value
Fail e.style['transition'] = "none top" should not set the property value
Fail e.style['transition'] = "initial 1s" should not set the property value