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>
1.8 KiB
1.8 KiB