1
Fork 0
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:
Matthew Olsson 2024-03-05 18:00:00 -07:00 committed by Andreas Kling
parent 4d8bc16812
commit 8bb635bd33
3 changed files with 66 additions and 32 deletions

View file

@ -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>