Commit Graph

2 Commits

Author SHA1 Message Date
Tim Ledbetter
5478361ba0 LibWeb: Avoid division by zero with small aspect ratios 2025-07-13 05:41:48 +02:00
Tim Ledbetter
2c5d626b21 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.
2024-08-22 13:49:41 +02:00