1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:57:46 +00:00

LibWeb: Fix division by zero in distribute_any_remaining_free_space

This change fixes division by zero in case flex container has
"justify-content: space-between" and only single item.
This commit is contained in:
Aliaksandr Kalenik 2023-07-25 13:51:16 +02:00 committed by Andreas Kling
parent 6088374ad2
commit 849cf894d8
3 changed files with 17 additions and 1 deletions

View file

@ -0,0 +1,6 @@
<style>
.container {
display: flex;
justify-content: space-between;
}
</style><div class="container"><div>A</div></div>