LibWeb: Parse animation-* properties as comma separated lists

We are yet to actually support having more than one value but this gets
us closer and gains us some WPT tests in the process.
This commit is contained in:
Callum Law
2025-09-16 16:54:54 +12:00
committed by Tim Ledbetter
parent 4fd57f90b3
commit 030e6d7c9b
Notes: github-actions[bot] 2025-09-24 11:00:13 +00:00
19 changed files with 58 additions and 51 deletions

View File

@@ -2,8 +2,8 @@ Harness status: OK
Found 21 tests
19 Pass
2 Fail
20 Pass
1 Fail
Pass Property animation-timing-function value 'linear'
Pass Property animation-timing-function value 'ease'
Pass Property animation-timing-function value 'ease-in'
@@ -23,5 +23,5 @@ Pass Property animation-timing-function value 'steps(2, jump-none)'
Pass Property animation-timing-function value 'steps(calc(-10), start)'
Pass Property animation-timing-function value 'steps(calc(5 / 2), start)'
Pass Property animation-timing-function value 'steps(calc(1), jump-none)'
Fail Property animation-timing-function value 'linear, ease, linear'
Pass Property animation-timing-function value 'linear, ease, linear'
Fail Property animation-timing-function value 'steps(calc(2 + sign(100em - 1px)), end)'

View File

@@ -2,8 +2,8 @@ Harness status: OK
Found 22 tests
20 Pass
2 Fail
21 Pass
1 Fail
Pass e.style['animation-timing-function'] = "linear" should set the property value
Pass e.style['animation-timing-function'] = "ease" should set the property value
Pass e.style['animation-timing-function'] = "ease-in" should set the property value
@@ -24,5 +24,5 @@ Pass e.style['animation-timing-function'] = "steps(2, jump-none)" should set the
Pass e.style['animation-timing-function'] = "steps(calc(-10), start)" should set the property value
Pass e.style['animation-timing-function'] = "steps(calc(5 / 2), start)" should set the property value
Pass e.style['animation-timing-function'] = "steps(calc(1), jump-none)" should set the property value
Fail e.style['animation-timing-function'] = "linear, ease, linear" should set the property value
Pass e.style['animation-timing-function'] = "linear, ease, linear" should set the property value
Pass e.style['animation-timing-function'] = "steps(calc(2 + sign(100em - 1px)))" should set the property value