mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-11 17:37:33 +02:00
This got changed a while back to avoid a divide-by-0. That change was not following the spec at all and would've resulted in incorrect values being used, so this is the spec-compliant way of resolving that. I originally didn't add spec comments to this algorithm since it felt weird, but I hope these will demonstrate that this should not be changed on a whim until we can import the relevant WPT tests for this behavior.
87 KiB
87 KiB