Files
rust_browser/tests/goldens/expected/074-pre-empty.layout.txt
Zachary D. Rowitsch 913218a986 Fix nested list overlap by handling CssValue::Initial and inline-block line commit
Two bugs caused nested <ul> elements in navbar layouts to overlap:

1. CssValue::Initial was parsed but never handled in apply_declaration(),
   so `display: initial` silently left the property unchanged instead of
   resetting to the CSS spec initial value (inline).

2. When an InlineBlock was the only content on a line (whitespace collapsed),
   the final-line commit was skipped because line_fragments was empty,
   giving the anonymous block wrapper height=0.

CSS initial values follow the spec: border-color uses currentColor,
border-spacing is 0 (not the UA default of 2px), with TODOs for
text-align (start) and color (CanvasText) pending RTL/system color support.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07 01:59:11 -05:00

1.8 KiB