forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibWeb: Fix extra validation for EasingStyleValue intervals
(cherry picked from commit b342758dbf8d1138353db89708964e75b9128400)
- Loading branch information
1 parent
dad7557
commit fcb45f4
Showing
3 changed files
with
33 additions
and
5 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
Tests/LibWeb/Text/expected/WebAnimations/misc/parse-animation-timing-function-steps.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Computed animation-timing-function: ease |
27 changes: 27 additions & 0 deletions
27
Tests/LibWeb/Text/input/WebAnimations/misc/parse-animation-timing-function-steps.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!DOCTYPE html> | ||
<style> | ||
@keyframes test-animation { | ||
from { | ||
transform: translateX(0); | ||
} | ||
to { | ||
transform: translateX(100px); | ||
} | ||
} | ||
|
||
.animate { | ||
animation: test-animation 2s steps(1, jump-none) infinite; | ||
} | ||
</style> | ||
<div class="box animate" style="width: 50px; height: 50px; background-color: red;"></div> | ||
<script src="../../include.js"></script> | ||
<script> | ||
test(() => { | ||
// Apply animation dynamically to trigger re-computation. | ||
document.querySelector('.box').classList.add('animate'); | ||
|
||
// Log computed style to confirm the animation is parsed and applied correctly. | ||
const animation = getComputedStyle(document.querySelector('.box')).animationTimingFunction; | ||
println('Computed animation-timing-function: ' + animation); | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters