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:
parent
e6aef49ef3
commit
8f3b97e095
3 changed files with 37 additions and 11 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue