Open joekohlsdorf opened 1 month ago
This bug seems to happen during step 7 of the flex layout algorithm
This is the code responsible for the bug the if statement fixes the problem but breaks other tests. https://github.com/LadybirdBrowser/ladybird/blob/00c45243bd62f45f402aa5e6d0d12d53591904c1/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp#L1100-L1107
This doesn't happen when explicitly specifying the height of the image element. Width doesn't seem to be affected.
Minimal HTML to reproduce:
Screenshot (top Ladybird, bottom Chromium):