Quirks mode: line boxes holding only images get a strut (no line height calculation quirk)
Documents without a doctype, or with a legacy one, are laid out in quirks mode by browsers. About half of real-world HTML email is like this. The most visible difference is the line height calculation quirk: a line box that holds only images, with no text, doesn't get the strut's height. So an image alone in a block or a table cell takes exactly its own height. Blitz always uses standards-mode line boxes, so there is a gap below every such image (the descender space), and image-built layouts such as sliced banners or spacer rows come apart.
blitz-html already records the parser's quirks mode (html_sink.rs, set_quirks_mode), but layout never reads it.
<html><body>
<div style="background:#c33;width:300px"><img src="…" width="300" height="20"></div>
<table cellpadding="0" cellspacing="0" style="background:#c33"><tr><td><img src="…" width="300" height="20"></td></tr></table>
</body></html>

In Chromium the red container is exactly 20px tall. In Blitz the red gap shows below the image. The limited-quirks variant (transitional doctypes) applies the same quirk only to lines that contain nothing but replaced elements.
For reference, I have an opt-in implementation on a fork: devahschaefers/blitz@73b14c7c7644ba8ccd42357c81fcee216c7a7465. It doesn't give a line box the strut when its inline content has no text. That version is a per-document setting, chosen by the embedder from the doctype. Upstream would probably want it set from quirks_mode instead. I can turn it into a PR if that direction sounds right.
🤖 Generated with Claude Code