Files
rust_browser/tests/goldens/expected/172-line-height-var.dl.txt
Zachary D. Rowitsch 51b732710a
All checks were successful
ci / fast (linux) (push) Successful in 6m49s
Fix line-height var() parsing, add inline-flex support, skip abspos in IFC
Three bug fixes that improve Wikipedia rendering:

1. Use property-aware parsing after var() substitution so `line-height: var(--lh)`
   with a unitless value like `1.6` is correctly interpreted as a multiplier
   (CssValue::Number) instead of 1.6px (CssValue::Length).

2. Handle inline-flex containers in inline formatting context by treating them
   as atomic inlines (matching InlineBlock and inline-grid patterns), and skip
   absolutely/fixed positioned elements in flatten_inline_tree_with_depth since
   they are out of normal flow.

3. Expand `overflow` as a shorthand property so dual-value syntax like
   `overflow: hidden auto` correctly sets overflow-x and overflow-y independently.

Also adds flex nested sizing fixes and promotes 21 WPT tests from known_fail to pass.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 18:34:16 -05:00

13 lines
910 B
Plaintext

DisplayList items=11
SolidRect rect=(8, 24, 200, 51.199997) color=#add8e6
Text rect=(8, 28.8, 23.847282, 16) text="First" color=#000000 font_size=16
Text rect=(34.901615, 28.8, 19.947138, 16) text="line" color=#000000 font_size=16
Text rect=(57.903088, 28.8, 11.148312, 16) text="of" color=#000000 font_size=16
Text rect=(72.10573, 28.8, 24.469896, 16) text="text." color=#000000 font_size=16
Text rect=(99.62995, 28.8, 40.305435, 16) text="Second" color=#000000 font_size=16
Text rect=(142.98973, 28.8, 19.947138, 16) text="line" color=#000000 font_size=16
Text rect=(165.99121, 28.8, 11.148312, 16) text="of" color=#000000 font_size=16
Text rect=(180.19386, 28.8, 21.321585, 16) text="text" color=#000000 font_size=16
Text rect=(8, 54.399998, 22.331863, 16) text="that" color=#000000 font_size=16
Text rect=(33.386196, 54.399998, 36.675476, 16) text="wraps." color=#000000 font_size=16