mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-16 15:30:09 +00:00
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
This commit is contained in:
parent
945c58c7c1
commit
18520561e7
Notes:
sideshowbarker
2024-07-17 05:09:48 +09:00
Author: https://github.com/shannonbooth
Commit: 18520561e7
Pull-request: https://github.com/SerenityOS/serenity/pull/23867
Reviewed-by: https://github.com/AtkinsSJ ✅
5 changed files with 24 additions and 6 deletions
|
@ -0,0 +1,16 @@
|
|||
<!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>
|
Loading…
Add table
Add a link
Reference in a new issue