Files
rust_browser/tests/goldens/expected/132-img-inline.dl.txt
Zachary D. Rowitsch e0aae716b0 Add vertical-align support for inline-block elements
Inline-block elements now participate in vertical alignment within
inline formatting contexts. Previously, inline-blocks were positioned
at the parent's content origin regardless of their vertical-align
property. Now they are correctly repositioned based on CSS 2.1 §10.8.1
baseline calculation rules.

Key changes:
- Extended AtomicInline with vertical-align, baseline-offset fields
- Create positioning-only InlineFragment for each atomic inline
- Reposition inline-block LayoutBoxes after vertical alignment
- Compute baseline from last line box (or bottom margin edge)
- Made offset_layout_box pub(crate) for reuse across modules
- Skip atomic fragments in display list builder
- Comprehensive test coverage (23 new tests)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 17:00:04 -05:00

5 lines
231 B
Plaintext

DisplayList items=3
Text rect=(8, 8, 28.499266, 16) text="Hello" color=#000000 font_size=16
Text rect=(44.607933, 8, 31.447872, 16) text="world" color=#000000 font_size=16
Image rect=(39.5536, 18.558002, 2, 2) image_id=img#0