mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-24 00:49:46 +00:00
Previously, when interpolating a repeatable list from a list with multiple values to a single value, we would crash.
24 lines
747 B
HTML
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>
|