mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-08 16:12:23 +02:00
Fixing float-related intrinsic width bookkeeping exposed that table captions only contributed their raw min-content width to CAPMIN. That ignored caption padding, borders, margins, and definite widths, so captions could be laid out too narrow and wrap content that should stay beside floats. Compute each caption's min-content contribution as an outer width and clamp it against the preferred outer width when the caption has a definite width. Add a test for a fixed-width caption with a float and rebaseline the existing padded-caption layout test.
106 KiB
106 KiB