Files
serenity/Userland/Libraries/LibWeb/Layout/Box.cpp
Tim Ledbetter 610873368a LibWeb: Don't crash when converting small CSS::Ratio to CSSPixelFraction
Previously, a crash would occur in the if `CSSPixelFraction` was given a
denominator value less than the resolution of `CSSPixels` (1/64).

We now divide both parts of the ratio by the denominator in this case.

(cherry picked from commit 2c5d626b2125ffea49e06735e2f93279d0dfa0e1)
2024-11-02 07:50:34 -04:00

2.8 KiB