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,7 @@ Harness status: OK
Found 324 tests
314 Pass
10 Fail
324 Pass
Pass CSS Transitions: property <clip> from neutral to [rect(20px, 20px, 20px, 20px)] at (-1) should be [rect(-20px 180px -20px 180px)]
Pass CSS Transitions: property <clip> from neutral to [rect(20px, 20px, 20px, 20px)] at (0) should be [rect(0px 100px 0px 100px)]
Pass CSS Transitions: property <clip> from neutral to [rect(20px, 20px, 20px, 20px)] at (0.25) should be [rect(5px 80px 5px 80px)]
@@ -16,18 +15,18 @@ Pass CSS Transitions with transition: all: property <clip> from neutral to [rect
Pass CSS Transitions with transition: all: property <clip> from neutral to [rect(20px, 20px, 20px, 20px)] at (0.75) should be [rect(15px 40px 15px 40px)]
Pass CSS Transitions with transition: all: property <clip> from neutral to [rect(20px, 20px, 20px, 20px)] at (1) should be [rect(20px 20px 20px 20px)]
Pass CSS Transitions with transition: all: property <clip> from neutral to [rect(20px, 20px, 20px, 20px)] at (2) should be [rect(40px -60px 40px -60px)]
Fail CSS Animations: property <clip> from neutral to [rect(20px, 20px, 20px, 20px)] at (-1) should be [rect(-20px 180px -20px 180px)]
Fail CSS Animations: property <clip> from neutral to [rect(20px, 20px, 20px, 20px)] at (0) should be [rect(0px 100px 0px 100px)]
Fail CSS Animations: property <clip> from neutral to [rect(20px, 20px, 20px, 20px)] at (0.25) should be [rect(5px 80px 5px 80px)]
Fail CSS Animations: property <clip> from neutral to [rect(20px, 20px, 20px, 20px)] at (0.75) should be [rect(15px 40px 15px 40px)]
Pass CSS Animations: property <clip> from neutral to [rect(20px, 20px, 20px, 20px)] at (-1) should be [rect(-20px 180px -20px 180px)]
Pass CSS Animations: property <clip> from neutral to [rect(20px, 20px, 20px, 20px)] at (0) should be [rect(0px 100px 0px 100px)]
Pass CSS Animations: property <clip> from neutral to [rect(20px, 20px, 20px, 20px)] at (0.25) should be [rect(5px 80px 5px 80px)]
Pass CSS Animations: property <clip> from neutral to [rect(20px, 20px, 20px, 20px)] at (0.75) should be [rect(15px 40px 15px 40px)]
Pass CSS Animations: property <clip> from neutral to [rect(20px, 20px, 20px, 20px)] at (1) should be [rect(20px 20px 20px 20px)]
Fail CSS Animations: property <clip> from neutral to [rect(20px, 20px, 20px, 20px)] at (2) should be [rect(40px -60px 40px -60px)]
Fail Web Animations: property <clip> from neutral to [rect(20px, 20px, 20px, 20px)] at (-1) should be [rect(-20px 180px -20px 180px)]
Fail Web Animations: property <clip> from neutral to [rect(20px, 20px, 20px, 20px)] at (0) should be [rect(0px 100px 0px 100px)]
Fail Web Animations: property <clip> from neutral to [rect(20px, 20px, 20px, 20px)] at (0.25) should be [rect(5px 80px 5px 80px)]
Fail Web Animations: property <clip> from neutral to [rect(20px, 20px, 20px, 20px)] at (0.75) should be [rect(15px 40px 15px 40px)]
Pass CSS Animations: property <clip> from neutral to [rect(20px, 20px, 20px, 20px)] at (2) should be [rect(40px -60px 40px -60px)]
Pass Web Animations: property <clip> from neutral to [rect(20px, 20px, 20px, 20px)] at (-1) should be [rect(-20px 180px -20px 180px)]
Pass Web Animations: property <clip> from neutral to [rect(20px, 20px, 20px, 20px)] at (0) should be [rect(0px 100px 0px 100px)]
Pass Web Animations: property <clip> from neutral to [rect(20px, 20px, 20px, 20px)] at (0.25) should be [rect(5px 80px 5px 80px)]
Pass Web Animations: property <clip> from neutral to [rect(20px, 20px, 20px, 20px)] at (0.75) should be [rect(15px 40px 15px 40px)]
Pass Web Animations: property <clip> from neutral to [rect(20px, 20px, 20px, 20px)] at (1) should be [rect(20px 20px 20px 20px)]
Fail Web Animations: property <clip> from neutral to [rect(20px, 20px, 20px, 20px)] at (2) should be [rect(40px -60px 40px -60px)]
Pass Web Animations: property <clip> from neutral to [rect(20px, 20px, 20px, 20px)] at (2) should be [rect(40px -60px 40px -60px)]
Pass CSS Transitions with transition-behavior:allow-discrete: property <clip> from [initial] to [rect(20px, 20px, 20px, 20px)] at (-0.3) should be [initial]
Pass CSS Transitions with transition-behavior:allow-discrete: property <clip> from [initial] to [rect(20px, 20px, 20px, 20px)] at (0) should be [initial]
Pass CSS Transitions with transition-behavior:allow-discrete: property <clip> from [initial] to [rect(20px, 20px, 20px, 20px)] at (0.3) should be [initial]

View File

@@ -2,8 +2,8 @@ Harness status: OK
Found 196 tests
132 Pass
64 Fail
144 Pass
52 Fail
Pass CSS Transitions: property <mask-position> from neutral to [20px 20px] at (-0.25) should be [7.5px 32.5px]
Pass CSS Transitions: property <mask-position> from neutral to [20px 20px] at (0) should be [10px 30px]
Pass CSS Transitions: property <mask-position> from neutral to [20px 20px] at (0.25) should be [12.5px 27.5px]
@@ -18,20 +18,20 @@ Pass CSS Transitions with transition: all: property <mask-position> from neutral
Pass CSS Transitions with transition: all: property <mask-position> from neutral to [20px 20px] at (0.75) should be [17.5px 22.5px]
Pass CSS Transitions with transition: all: property <mask-position> from neutral to [20px 20px] at (1) should be [20px 20px]
Pass CSS Transitions with transition: all: property <mask-position> from neutral to [20px 20px] at (1.25) should be [22.5px 17.5px]
Fail CSS Animations: property <mask-position> from neutral to [20px 20px] at (-0.25) should be [7.5px 32.5px]
Fail CSS Animations: property <mask-position> from neutral to [20px 20px] at (0) should be [10px 30px]
Fail CSS Animations: property <mask-position> from neutral to [20px 20px] at (0.25) should be [12.5px 27.5px]
Fail CSS Animations: property <mask-position> from neutral to [20px 20px] at (0.5) should be [15px 25px]
Fail CSS Animations: property <mask-position> from neutral to [20px 20px] at (0.75) should be [17.5px 22.5px]
Pass CSS Animations: property <mask-position> from neutral to [20px 20px] at (-0.25) should be [7.5px 32.5px]
Pass CSS Animations: property <mask-position> from neutral to [20px 20px] at (0) should be [10px 30px]
Pass CSS Animations: property <mask-position> from neutral to [20px 20px] at (0.25) should be [12.5px 27.5px]
Pass CSS Animations: property <mask-position> from neutral to [20px 20px] at (0.5) should be [15px 25px]
Pass CSS Animations: property <mask-position> from neutral to [20px 20px] at (0.75) should be [17.5px 22.5px]
Pass CSS Animations: property <mask-position> from neutral to [20px 20px] at (1) should be [20px 20px]
Fail CSS Animations: property <mask-position> from neutral to [20px 20px] at (1.25) should be [22.5px 17.5px]
Fail Web Animations: property <mask-position> from neutral to [20px 20px] at (-0.25) should be [7.5px 32.5px]
Fail Web Animations: property <mask-position> from neutral to [20px 20px] at (0) should be [10px 30px]
Fail Web Animations: property <mask-position> from neutral to [20px 20px] at (0.25) should be [12.5px 27.5px]
Fail Web Animations: property <mask-position> from neutral to [20px 20px] at (0.5) should be [15px 25px]
Fail Web Animations: property <mask-position> from neutral to [20px 20px] at (0.75) should be [17.5px 22.5px]
Pass CSS Animations: property <mask-position> from neutral to [20px 20px] at (1.25) should be [22.5px 17.5px]
Pass Web Animations: property <mask-position> from neutral to [20px 20px] at (-0.25) should be [7.5px 32.5px]
Pass Web Animations: property <mask-position> from neutral to [20px 20px] at (0) should be [10px 30px]
Pass Web Animations: property <mask-position> from neutral to [20px 20px] at (0.25) should be [12.5px 27.5px]
Pass Web Animations: property <mask-position> from neutral to [20px 20px] at (0.5) should be [15px 25px]
Pass Web Animations: property <mask-position> from neutral to [20px 20px] at (0.75) should be [17.5px 22.5px]
Pass Web Animations: property <mask-position> from neutral to [20px 20px] at (1) should be [20px 20px]
Fail Web Animations: property <mask-position> from neutral to [20px 20px] at (1.25) should be [22.5px 17.5px]
Pass Web Animations: property <mask-position> from neutral to [20px 20px] at (1.25) should be [22.5px 17.5px]
Fail CSS Transitions: property <mask-position> from [initial] to [20px 20px] at (-0.25) should be [calc(0% - 5px) calc(0% - 5px)]
Fail CSS Transitions: property <mask-position> from [initial] to [20px 20px] at (0) should be [0% 0%]
Fail CSS Transitions: property <mask-position> from [initial] to [20px 20px] at (0.25) should be [calc(0% + 5px) calc(0% + 5px)]