servo/components/layout_2020/flow/inline
Martin Robinson 89944bd330
layout: Improve layout of table captions (#32695)
- Instead of treating captions as a `BlockFormattingContext`, treat it as
  a `NonReplacedFormattingContext`, which allows reusing flow layout for
  captions -- fixing some issues with sizing.
- Pass in the proper size of the containing block when laying out,
  fixing margin calculation.
- Follow the unspecified rules about how various size properties on
  captions affect their size.
- Improve linebreaking around atomics, which is tested by
  caption-related tests. This fixes intrinsic size calculation regarding
  soft wrap opportunities around atomic and also makes the code making
  these actual soft wrap opportunities a bit better.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Mukilan Thiyagarajan <mukilan@igalia.com>
2024-07-08 12:58:38 +00:00
..
construct.rs layout: Improve layout of table captions (#32695) 2024-07-08 12:58:38 +00:00
inline_box.rs layout: Allow rendering LineItems independent of inline box (#32666) 2024-07-03 15:15:31 +00:00
line.rs layout: Allow rendering LineItems independent of inline box (#32666) 2024-07-03 15:15:31 +00:00
line_breaker.rs layout: Linebreak the entire InlineFormattingContext at once (#32483) 2024-06-13 20:12:14 +00:00
mod.rs layout: Improve layout of table captions (#32695) 2024-07-08 12:58:38 +00:00
text_run.rs layout: Improve layout of table captions (#32695) 2024-07-08 12:58:38 +00:00