LibWeb: Support calc within linear() easing function

This commit is contained in:
Callum Law
2025-10-09 23:40:46 +13:00
committed by Sam Atkins
parent 91925db9ca
commit 2f83356c0f
Notes: github-actions[bot] 2025-10-20 10:29:34 +00:00
6 changed files with 94 additions and 34 deletions

View File

@@ -2,16 +2,16 @@ Harness status: OK
Found 35 tests
13 Pass
22 Fail
19 Pass
16 Fail
Pass e.style['animation-timing-function'] = "linear(0 0%, 1 100%)" should set the property value
Pass e.style['animation-timing-function'] = "linear( 0 0%, 1 100% )" should set the property value
Fail e.style['animation-timing-function'] = "linear(0, 1)" should set the property value
Pass e.style['animation-timing-function'] = "linear(-10, -5, 0, 5, 10)" should set the property value
Pass e.style['animation-timing-function'] = "linear(-10 -10%, -5 -5%, 0, 5, 10)" should set the property value
Fail e.style['animation-timing-function'] = "linear(0 calc(0%), 0 calc(100%))" should set the property value
Fail e.style['animation-timing-function'] = "linear(0 calc(50% - 50%), 0 calc(50% + 50%))" should set the property value
Fail e.style['animation-timing-function'] = "linear(0 calc(50%), 0 100%)" should set the property value
Pass e.style['animation-timing-function'] = "linear(0 calc(0%), 0 calc(100%))" should set the property value
Pass e.style['animation-timing-function'] = "linear(0 calc(50% - 50%), 0 calc(50% + 50%))" should set the property value
Pass e.style['animation-timing-function'] = "linear(0 calc(50%), 0 100%)" should set the property value
Fail e.style['animation-timing-function'] = "linear(0 0% 50%, 1 50% 100%)" should set the property value
Fail e.style['animation-timing-function'] = "linear(0, 0.5 25% 75%, 1 100% 100%)" should set the property value
Fail e.style['animation-timing-function'] = "linear(0, 1.3, 1, 0.92, 1, 0.99, 1, 0.998, 1 100% 100%)" should set the property value
@@ -31,9 +31,9 @@ Pass Property animation-timing-function value 'linear( 0 0%, 1 100% )'
Fail Property animation-timing-function value 'linear(0, 1)'
Fail Property animation-timing-function value 'linear(-10, -5, 0, 5, 10)'
Fail Property animation-timing-function value 'linear(-10 -10%, -5 -5%, 0, 5, 10)'
Fail Property animation-timing-function value 'linear(0 calc(0%), 0 calc(100%))'
Fail Property animation-timing-function value 'linear(0 calc(50% - 50%), 0 calc(50% + 50%))'
Fail Property animation-timing-function value 'linear(0 calc(min(50%, 60%)), 0 100%)'
Pass Property animation-timing-function value 'linear(0 calc(0%), 0 calc(100%))'
Pass Property animation-timing-function value 'linear(0 calc(50% - 50%), 0 calc(50% + 50%))'
Pass Property animation-timing-function value 'linear(0 calc(min(50%, 60%)), 0 100%)'
Pass Property animation-timing-function value 'linear(0 0% 50%, 1 50% 100%)'
Fail Property animation-timing-function value 'linear(0, 0.5 25% 75%, 1 100% 100%)'
Fail Property animation-timing-function value 'linear(0, 1.3, 1, 0.92, 1, 0.99, 1, 0.998, 1 100% 100%)'