LibWeb: Don't allow "display: none" start CSS animations

This is both a correctness fix and a performance optimization.
This commit is contained in:
Aliaksandr Kalenik 2025-01-31 22:26:59 +01:00 committed by Alexander Kalenik
commit 0cfe90b59e
Notes: github-actions[bot] 2025-02-01 12:42:56 +00:00
6 changed files with 116 additions and 7 deletions

View file

@ -2,8 +2,8 @@ Harness status: OK
Found 42 tests
28 Pass
14 Fail
31 Pass
11 Fail
Pass CSS Transitions with transition-behavior:allow-discrete: property <display> from [none] to [flex] at (-0.3) should be [flex]
Pass CSS Transitions with transition-behavior:allow-discrete: property <display> from [none] to [flex] at (0) should be [flex]
Pass CSS Transitions with transition-behavior:allow-discrete: property <display> from [none] to [flex] at (0.3) should be [flex]
@ -32,9 +32,9 @@ Pass CSS Transitions with transition: all: property <display> from [none] to [fl
Pass CSS Transitions with transition: all: property <display> from [none] to [flex] at (0.6) should be [flex]
Pass CSS Transitions with transition: all: property <display> from [none] to [flex] at (1) should be [flex]
Pass CSS Transitions with transition: all: property <display> from [none] to [flex] at (1.5) should be [flex]
Fail CSS Animations: property <display> from [none] to [flex] at (-0.3) should be [block]
Fail CSS Animations: property <display> from [none] to [flex] at (0) should be [block]
Fail CSS Animations: property <display> from [none] to [flex] at (0.3) should be [block]
Pass CSS Animations: property <display> from [none] to [flex] at (-0.3) should be [block]
Pass CSS Animations: property <display> from [none] to [flex] at (0) should be [block]
Pass CSS Animations: property <display> from [none] to [flex] at (0.3) should be [block]
Fail CSS Animations: property <display> from [none] to [flex] at (0.5) should be [block]
Fail CSS Animations: property <display> from [none] to [flex] at (0.6) should be [block]
Fail CSS Animations: property <display> from [none] to [flex] at (1) should be [block]