Files
rust_browser/tests/goldens/expected/164-inline-flex.layout.txt
Zachary D. Rowitsch 6ac27a96a0 Implement flexbox enhancements: multi-line, reverse, align-self/content, order, inline-flex
Add comprehensive flexbox support across 8 areas:
- flex/flex-flow shorthand parsing from raw CssToken kinds
- justify-content: space-around/space-evenly, align-items: baseline
- flex-direction: row-reverse/column-reverse with justify swap
- align-self per-item cross-axis override
- flex-wrap multi-line layout with line partitioning and packing
- align-content with all 7 distribution strategies
- display: inline-flex with proper formatting context handling
- order property with stable sort and integer-only validation

Rewrites the flex layout algorithm to support multi-line containers,
reverse directions, per-item alignment, and all content distribution
modes. Promotes 36 WPT tests to pass and demotes 25 false passes
exposed by correct gap handling.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 14:09:12 -05:00

67 lines
2.5 KiB
Plaintext

LayoutBox node=#2 tag=html box=block
content: (0, 0, 800, 67.2)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
LayoutBox node=#10 tag=body box=block
content: (8, 8, 784, 51.2)
padding: 0 0 0 0
border: 0 0 0 0
margin: 8 8 8 8
LayoutBox node=#12 tag=p box=block
content: (8, 24, 784, 19.2)
padding: 0 0 0 0
border: 0 0 0 0
margin: 16 0 16 0
inline_context: 1 lines, height=19.2, max_width=119.976494
line[0]: rect=(8, 24, 119.976494, 19.2) fragments=4
frag[0]: rect=(8, 24, 23.612333, 16) text="Text" start=false end=false
frag[1]: rect=(34.666664, 24, 36.47577, 16) text="before" start=false end=false
frag[2]: rect=(77.25109, 24, 21.321585, 16) text="text" start=false end=false
frag[3]: rect=(101.62701, 24, 26.349485, 16) text="after" start=false end=false
LayoutBox node=#13 tag=anonymous box=anon
content: (0, 0, 66.19676, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: "Text before "
LayoutBox node=#14 tag=span box=flex
content: (18, 34, 764, 50)
padding: 10 10 10 10
border: 0 0 0 0
margin: 0 0 0 0
LayoutBox node=#15 tag=span box=inline
content: (23, 39, 50, 40)
padding: 0 0 0 0
border: 0 0 0 0
margin: 5 5 5 5
inline_context: 1 lines, height=19.2, max_width=7.506607
line[0]: rect=(23, 39, 7.506607, 19.2) fragments=1
frag[0]: rect=(23, 39, 7.506608, 16) text="A" start=false end=false
LayoutBox node=#16 tag=anonymous box=anon
content: (0, 0, 7.506608, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: "A"
LayoutBox node=#17 tag=span box=inline
content: (83, 39, 50, 40)
padding: 0 0 0 0
border: 0 0 0 0
margin: 5 5 5 5
inline_context: 1 lines, height=19.2, max_width=7.635826
line[0]: rect=(83, 39, 7.635826, 19.2) fragments=1
frag[0]: rect=(83, 39, 7.6358294, 16) text="B" start=false end=false
LayoutBox node=#18 tag=anonymous box=anon
content: (0, 0, 7.6358294, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: "B"
LayoutBox node=#19 tag=anonymous box=anon
content: (0, 0, 53.77973, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: " text after"