ladybird/Tests/LibWeb/Text/input/css/background-size-animation-crash.html
Tim Ledbetter 17f14a277b LibWeb: Don't crash when interpolating single-value repeatable lists
Previously, when interpolating a repeatable list from a list with
multiple values to a single value, we would crash.
2025-06-02 11:33:01 +01:00

24 lines
747 B
HTML

<!DOCTYPE html>
<!-- FIXME: Ideally this would be a crash test, but the test harness doesn't wait long enough for the crash to occur -->
<script src="../include.js"></script>
<div></div>
<script>
asyncTest(done => {
const element = document.querySelector('div');
const animation = element.animate([
{ backgroundSize: '10% 10%, 20% 20%' },
{ backgroundSize: 'auto auto' }
], {
duration: 1000,
});
animation.finished.then(() => {
println("PASS (didn't crash!)");
done();
});
requestAnimationFrame(() => {
requestAnimationFrame(() => {
animation.finish();
});
});
});
</script>