mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:37:35 +00:00
LibWeb: Prevent transform interpolations from failing
Style computation should never fail. Instead, we just ignore the transformation that led to the invalid matrix.
This commit is contained in:
parent
4d8bc16812
commit
8bb635bd33
3 changed files with 66 additions and 32 deletions
|
@ -0,0 +1,14 @@
|
|||
<div id="foo"></div>
|
||||
<script src="include.js"></script>
|
||||
<script>
|
||||
asyncTest(done => {
|
||||
document.getElementById("foo").animate(
|
||||
{ transform: ["scale(0)", "scale(0)"] },
|
||||
{ duration: 1000 },
|
||||
);
|
||||
requestAnimationFrame(() => {
|
||||
println("no crash!");
|
||||
done();
|
||||
});
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue