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>
8 lines
515 B
Plaintext
8 lines
515 B
Plaintext
DisplayList items=6
|
|
Text rect=(8, 27.2, 41.491924, 16) text="Normal" color=#000000 font_size=16
|
|
Text rect=(52.546257, 27.2, 21.321585, 16) text="text" color=#000000 font_size=16
|
|
Text rect=(76.92217, 27.2, 26.349485, 16) text="after" color=#000000 font_size=16
|
|
Text rect=(106.32599, 27.2, 35.06608, 16) text="empty" color=#000000 font_size=16
|
|
Text rect=(144.4464, 27.2, 18.701908, 16) text="pre" color=#000000 font_size=16
|
|
Text rect=(166.20264, 27.2, 23.68282, 16) text="tags" color=#000000 font_size=16
|