LibWeb: Allow calc() values in cubic-bezier() easing functions

This commit is contained in:
Tim Ledbetter
2025-06-17 22:51:54 +01:00
committed by Jelle Raaijmakers
parent c5a3eaaf45
commit fa1e02e5d7
Notes: github-actions[bot] 2025-06-18 06:58:15 +00:00
5 changed files with 58 additions and 31 deletions

View File

@@ -2,8 +2,8 @@ Harness status: OK
Found 21 tests
18 Pass
3 Fail
19 Pass
2 Fail
Pass Property animation-timing-function value 'linear'
Pass Property animation-timing-function value 'ease'
Pass Property animation-timing-function value 'ease-in'
@@ -12,7 +12,7 @@ Pass Property animation-timing-function value 'ease-in-out'
Pass Property animation-timing-function value 'cubic-bezier(0.1, 0.2, 0.8, 0.9)'
Pass Property animation-timing-function value 'cubic-bezier(0, -2, 1, 3)'
Pass Property animation-timing-function value 'cubic-bezier(0, 0.7, 1, 1.3)'
Fail Property animation-timing-function value 'cubic-bezier(calc(-2), calc(0.7 / 2), calc(1.5), calc(0))'
Pass Property animation-timing-function value 'cubic-bezier(calc(-2), calc(0.7 / 2), calc(1.5), calc(0))'
Pass Property animation-timing-function value 'steps(4, start)'
Pass Property animation-timing-function value 'steps(2, end)'
Pass Property animation-timing-function value 'steps( 2, end )'

View File

@@ -2,8 +2,8 @@ Harness status: OK
Found 22 tests
19 Pass
3 Fail
20 Pass
2 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
@@ -12,7 +12,7 @@ Pass e.style['animation-timing-function'] = "ease-in-out" should set the propert
Pass e.style['animation-timing-function'] = "cubic-bezier(0.1, 0.2, 0.8, 0.9)" should set the property value
Pass e.style['animation-timing-function'] = "cubic-bezier(0, -2, 1, 3)" should set the property value
Pass e.style['animation-timing-function'] = "cubic-bezier(0, 0.7, 1, 1.3)" should set the property value
Fail e.style['animation-timing-function'] = "cubic-bezier(calc(-2), calc(0.7 / 2), calc(1.5), calc(0))" should set the property value
Pass e.style['animation-timing-function'] = "cubic-bezier(calc(-2), calc(0.7 / 2), calc(1.5), calc(0))" should set the property value
Fail e.style['animation-timing-function'] = "cubic-bezier(0, sibling-index(), 1, sign(2em - 20px))" should set the property value
Pass e.style['animation-timing-function'] = "steps(4, start)" should set the property value
Pass e.style['animation-timing-function'] = "steps(2, end)" should set the property value