LibWeb: Allow UseInitial in keyframes when updating animated style

This removes the AnimationRefresh argument from `collect_animation_into`
which was added in a9b8840 - it's only effect was disallowing
`UseInitial`s within keyframes when we were doing animated style
updates which I believe is unintentional.

Gains us 214 WPT tests.
This commit is contained in:
Callum Law
2025-08-27 21:28:52 +12:00
committed by Jelle Raaijmakers
parent d69e62425e
commit ede80ccdfb
Notes: github-actions[bot] 2025-08-27 12:52:16 +00:00
25 changed files with 260 additions and 270 deletions

View File

@@ -2,8 +2,8 @@ Harness status: OK
Found 360 tests
238 Pass
122 Fail
248 Pass
112 Fail
Pass CSS Transitions: property <rotate> from [100deg] to [180deg] at (-1) should be [20deg]
Pass CSS Transitions: property <rotate> from [100deg] to [180deg] at (0) should be [100deg]
Pass CSS Transitions: property <rotate> from [100deg] to [180deg] at (0.125) should be [110deg]
@@ -136,18 +136,18 @@ Pass CSS Transitions with transition: all: property <rotate> from neutral to [30
Pass CSS Transitions with transition: all: property <rotate> from neutral to [30deg] at (0.75) should be [25deg]
Pass CSS Transitions with transition: all: property <rotate> from neutral to [30deg] at (1) should be [30deg]
Pass CSS Transitions with transition: all: property <rotate> from neutral to [30deg] at (2) should be [50deg]
Fail CSS Animations: property <rotate> from neutral to [30deg] at (-1) should be [-10deg]
Fail CSS Animations: property <rotate> from neutral to [30deg] at (0) should be [10deg]
Fail CSS Animations: property <rotate> from neutral to [30deg] at (0.25) should be [15deg]
Fail CSS Animations: property <rotate> from neutral to [30deg] at (0.75) should be [25deg]
Pass CSS Animations: property <rotate> from neutral to [30deg] at (-1) should be [-10deg]
Pass CSS Animations: property <rotate> from neutral to [30deg] at (0) should be [10deg]
Pass CSS Animations: property <rotate> from neutral to [30deg] at (0.25) should be [15deg]
Pass CSS Animations: property <rotate> from neutral to [30deg] at (0.75) should be [25deg]
Pass CSS Animations: property <rotate> from neutral to [30deg] at (1) should be [30deg]
Fail CSS Animations: property <rotate> from neutral to [30deg] at (2) should be [50deg]
Fail Web Animations: property <rotate> from neutral to [30deg] at (-1) should be [-10deg]
Fail Web Animations: property <rotate> from neutral to [30deg] at (0) should be [10deg]
Fail Web Animations: property <rotate> from neutral to [30deg] at (0.25) should be [15deg]
Fail Web Animations: property <rotate> from neutral to [30deg] at (0.75) should be [25deg]
Pass CSS Animations: property <rotate> from neutral to [30deg] at (2) should be [50deg]
Pass Web Animations: property <rotate> from neutral to [30deg] at (-1) should be [-10deg]
Pass Web Animations: property <rotate> from neutral to [30deg] at (0) should be [10deg]
Pass Web Animations: property <rotate> from neutral to [30deg] at (0.25) should be [15deg]
Pass Web Animations: property <rotate> from neutral to [30deg] at (0.75) should be [25deg]
Pass Web Animations: property <rotate> from neutral to [30deg] at (1) should be [30deg]
Fail Web Animations: property <rotate> from neutral to [30deg] at (2) should be [50deg]
Pass Web Animations: property <rotate> from neutral to [30deg] at (2) should be [50deg]
Pass CSS Transitions: property <rotate> from [inherit] to [270deg] at (-1) should be [-90deg]
Pass CSS Transitions: property <rotate> from [inherit] to [270deg] at (0) should be [90deg]
Pass CSS Transitions: property <rotate> from [inherit] to [270deg] at (0.25) should be [135deg]

View File

@@ -2,8 +2,7 @@ Harness status: OK
Found 360 tests
350 Pass
10 Fail
360 Pass
Pass CSS Transitions: property <scale> from [-10 5] to [10 -5] at (-1) should be [-30 15]
Pass CSS Transitions: property <scale> from [-10 5] to [10 -5] at (0) should be [-10 5]
Pass CSS Transitions: property <scale> from [-10 5] to [10 -5] at (0.25) should be [-5 2.5]
@@ -184,18 +183,18 @@ Pass CSS Transitions with transition: all: property <scale> from neutral to [1.5
Pass CSS Transitions with transition: all: property <scale> from neutral to [1.5 1] at (0.75) should be [1.4 1]
Pass CSS Transitions with transition: all: property <scale> from neutral to [1.5 1] at (1) should be [1.5 1]
Pass CSS Transitions with transition: all: property <scale> from neutral to [1.5 1] at (2) should be [1.9 1]
Fail CSS Animations: property <scale> from neutral to [1.5 1] at (-1) should be [0.7 1]
Fail CSS Animations: property <scale> from neutral to [1.5 1] at (0) should be [1.1 1]
Fail CSS Animations: property <scale> from neutral to [1.5 1] at (0.25) should be [1.2 1]
Fail CSS Animations: property <scale> from neutral to [1.5 1] at (0.75) should be [1.4 1]
Pass CSS Animations: property <scale> from neutral to [1.5 1] at (-1) should be [0.7 1]
Pass CSS Animations: property <scale> from neutral to [1.5 1] at (0) should be [1.1 1]
Pass CSS Animations: property <scale> from neutral to [1.5 1] at (0.25) should be [1.2 1]
Pass CSS Animations: property <scale> from neutral to [1.5 1] at (0.75) should be [1.4 1]
Pass CSS Animations: property <scale> from neutral to [1.5 1] at (1) should be [1.5 1]
Fail CSS Animations: property <scale> from neutral to [1.5 1] at (2) should be [1.9 1]
Fail Web Animations: property <scale> from neutral to [1.5 1] at (-1) should be [0.7 1]
Fail Web Animations: property <scale> from neutral to [1.5 1] at (0) should be [1.1 1]
Fail Web Animations: property <scale> from neutral to [1.5 1] at (0.25) should be [1.2 1]
Fail Web Animations: property <scale> from neutral to [1.5 1] at (0.75) should be [1.4 1]
Pass CSS Animations: property <scale> from neutral to [1.5 1] at (2) should be [1.9 1]
Pass Web Animations: property <scale> from neutral to [1.5 1] at (-1) should be [0.7 1]
Pass Web Animations: property <scale> from neutral to [1.5 1] at (0) should be [1.1 1]
Pass Web Animations: property <scale> from neutral to [1.5 1] at (0.25) should be [1.2 1]
Pass Web Animations: property <scale> from neutral to [1.5 1] at (0.75) should be [1.4 1]
Pass Web Animations: property <scale> from neutral to [1.5 1] at (1) should be [1.5 1]
Fail Web Animations: property <scale> from neutral to [1.5 1] at (2) should be [1.9 1]
Pass Web Animations: property <scale> from neutral to [1.5 1] at (2) should be [1.9 1]
Pass CSS Transitions: property <scale> from [initial] to [2 0.5 1] at (-1) should be [0 1.5]
Pass CSS Transitions: property <scale> from [initial] to [2 0.5 1] at (0) should be [1]
Pass CSS Transitions: property <scale> from [initial] to [2 0.5 1] at (0.25) should be [1.25 0.875]

View File

@@ -2,8 +2,8 @@ Harness status: OK
Found 408 tests
370 Pass
38 Fail
380 Pass
28 Fail
Pass CSS Transitions: property <translate> from [-100px] to [100px] at (-1) should be [-300px]
Pass CSS Transitions: property <translate> from [-100px] to [100px] at (0) should be [-100px]
Pass CSS Transitions: property <translate> from [-100px] to [100px] at (0.25) should be [-50px]
@@ -232,18 +232,18 @@ Pass CSS Transitions with transition: all: property <translate> from neutral to
Pass CSS Transitions with transition: all: property <translate> from neutral to [20px] at (0.75) should be [17.5px]
Pass CSS Transitions with transition: all: property <translate> from neutral to [20px] at (1) should be [20px]
Pass CSS Transitions with transition: all: property <translate> from neutral to [20px] at (2) should be [30px]
Fail CSS Animations: property <translate> from neutral to [20px] at (-1) should be [0px]
Fail CSS Animations: property <translate> from neutral to [20px] at (0) should be [10px]
Fail CSS Animations: property <translate> from neutral to [20px] at (0.25) should be [12.5px]
Fail CSS Animations: property <translate> from neutral to [20px] at (0.75) should be [17.5px]
Pass CSS Animations: property <translate> from neutral to [20px] at (-1) should be [0px]
Pass CSS Animations: property <translate> from neutral to [20px] at (0) should be [10px]
Pass CSS Animations: property <translate> from neutral to [20px] at (0.25) should be [12.5px]
Pass CSS Animations: property <translate> from neutral to [20px] at (0.75) should be [17.5px]
Pass CSS Animations: property <translate> from neutral to [20px] at (1) should be [20px]
Fail CSS Animations: property <translate> from neutral to [20px] at (2) should be [30px]
Fail Web Animations: property <translate> from neutral to [20px] at (-1) should be [0px]
Fail Web Animations: property <translate> from neutral to [20px] at (0) should be [10px]
Fail Web Animations: property <translate> from neutral to [20px] at (0.25) should be [12.5px]
Fail Web Animations: property <translate> from neutral to [20px] at (0.75) should be [17.5px]
Pass CSS Animations: property <translate> from neutral to [20px] at (2) should be [30px]
Pass Web Animations: property <translate> from neutral to [20px] at (-1) should be [0px]
Pass Web Animations: property <translate> from neutral to [20px] at (0) should be [10px]
Pass Web Animations: property <translate> from neutral to [20px] at (0.25) should be [12.5px]
Pass Web Animations: property <translate> from neutral to [20px] at (0.75) should be [17.5px]
Pass Web Animations: property <translate> from neutral to [20px] at (1) should be [20px]
Fail Web Animations: property <translate> from neutral to [20px] at (2) should be [30px]
Pass Web Animations: property <translate> from neutral to [20px] at (2) should be [30px]
Pass CSS Transitions: property <translate> from [initial] to [200px 100px 200px] at (-1) should be [-200px -100px -200px]
Pass CSS Transitions: property <translate> from [initial] to [200px 100px 200px] at (0) should be [0px]
Pass CSS Transitions: property <translate> from [initial] to [200px 100px 200px] at (0.25) should be [50px 25px 50px]