1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:27:43 +00:00

LibWeb: Fix division by zero in solve_replaced_size_constraint()

Fixes crashes that occur in Discord after clicking on a direct messages
conversation.
This commit is contained in:
Aliaksandr Kalenik 2024-02-20 19:11:42 +01:00 committed by Andreas Kling
parent 3ac4b02604
commit c4f49e343a
3 changed files with 31 additions and 8 deletions

View file

@ -0,0 +1,8 @@
<!DOCTYPE html>
<style>
svg {
aspect-ratio: 1 / 1;
min-width: 100px;
min-height: 100px;
}
</style><div style="width: 0px; height: 0px"><svg xmlns="http://www.w3.org/2000/svg"></svg>