1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:07:36 +00:00

LibWeb: Don't render elements with invalid interpolated transform values

This commit is contained in:
Matthew Olsson 2024-03-05 19:48:36 -07:00 committed by Andreas Kling
parent e6aef49ef3
commit 8f3b97e095
3 changed files with 37 additions and 11 deletions

View file

@ -0,0 +1,22 @@
<!doctype html>
<link rel="match" href="reference/css-keyframe-invalid-transform-should-not-render-ref.html" />
<style>
#foo {
width: 100px;
height: 100px;
background-color: blue;
animation: anim 1s;
}
@keyframes anim {
from {
transform: scale(0);
}
to {
transform: scale(0);
}
}
</style>
<div id="foo"></div>
<script>
document.getElementById("foo").getAnimations()[0].currentTime = 500;
</script>