ladybird/Tests/LibWeb/Text/input/WebAnimations/transitions/parse-transition-calc-duration-delay.html
Shannon Booth 18520561e7 LibWeb: Fix crash for calculated transition duration/delays
As the parser was trying to directly unwrap an unresolved duration.
Currently we are outputting the wrong results for the serialized
duration, but this is still a step forwards.

Fixes a crash seen on: https://evaparish.com/blog/how-i-edit
2024-04-06 19:35:27 +01:00

16 lines
464 B
HTML

<!doctype html>
<style>
#foo {
transition:
color 0.6s cubic-bezier(0.19, 1, 0.22, 1),
background-size calc(0.3s) cubic-bezier(0.19, 1, 0.22, 1);
}
</style>
<div id="foo"></div>
<script src="../../include.js"></script>
<script>
test(() => {
println("PASS! (Didn't crash)");
// FIXME: It would be good if this test case could verify the serialized CSS - but that isn't correct right now.
});
</script>