Files
rust_browser/tests/goldens/fixtures/142-img-in-inline-wrapper.html
Zachary D. Rowitsch 46230dc645 Fix images inside inline wrappers not rendering (e.g., <font><img></font>)
Three bugs prevented images wrapped in inline elements from displaying:

1. Layout: pre_layout_inline_block_descendants now recurses through
   Inline wrappers to find and pre-layout nested InlineBlock children,
   so their dimensions are known before IFC flattening.

2. Display list: render_non_inline_descendants traverses through Inline
   wrappers to find and render InlineBlock/Block descendants without
   re-rendering backgrounds/borders already handled by IFC fragments.

3. Table sizing: measure_child_width and measure_child_min_content_width
   now check specified_width and intrinsic_width so images contribute
   their dimensions to column width calculations.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07 09:24:43 -05:00

6 lines
122 B
HTML

<html>
<body>
<p><font face="Arial"><img src="images/test_100x50.png" width="100" height="50"></font></p>
</body>
</html>