we (web engine): Experimental web browser project to understand the limits of Claude
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Inline content with mixed font-size: large span does not baseline-align with surrounding text #199

open opened by pierrelf.com

Found by headless e2e smoke pass. When an inline element has a larger font-size than its surrounding line content, it is positioned at the top of the line box instead of being baseline-aligned with the smaller siblings.

Repro#

cargo run -p we-e2e -- --url crates/e2e/pages/03_typography.html --out /tmp/typo.png

See crates/e2e/artifacts/03_typography.png: the paragraph "Normal paragraph with ... and a large span." should keep all spans on the same baseline. The .large span (28px) is rendered with its top edge near the small-text baseline — it visually overhangs the line.

Acceptance#

A line that mixes a 28px span among 14px text aligns all glyph baselines to the dominant baseline. The line box height grows to accommodate the tallest content; smaller text sits on the same baseline.

sign up or login to add to the discussion
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:meotu43t6usg4qdwzenk4s2t/sh.tangled.repo.issue/3mlyad6xi2k2w