Files
rust_browser/tests/goldens/expected/022-inline-background-border.layout.txt
Zachary D. Rowitsch de0afa12a1 Fix 4 rendering bugs: HTML table parsing, background-position axes, deferred absolute layout, half-leading line-height
- HTML parser: Add implicit tag closing for table elements (td, th, tr, tbody, thead, tfoot) per HTML5 §12.2.6.4
- CSS background-position: Swap axes when Y-only keyword (top/bottom) appears first or X-only keyword (left/right) appears second
- Canvas background: Propagate background image ID from root/body layout box to canvas
- Absolute positioning: Defer layout of absolute children until containing block height is finalized, fixing bottom:0 in auto-height containers
- Inline line-height: Implement CSS half-leading model (CSS2 §10.8.1) so line box height uses CSS line-height, not font metrics
- Anonymous text boxes: Inherit line_height and vertical_align from parent styles
- Default vertical_align changed from Top to Baseline per CSS spec

WPT: +3 promoted (abspos-containing-block-005, abspos-width-004, background-color-animation-with-table2), -9 demoted

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 23:16:11 -05:00

47 lines
1.7 KiB
Plaintext

LayoutBox node=#1 tag=html box=block
content: (0, 0, 800, 36.800003)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
LayoutBox node=#2 tag=body box=block
content: (8, 8, 784, 20.800001)
padding: 0 0 0 0
border: 0 0 0 0
margin: 8 8 8 8
LayoutBox node=#3 tag=div box=block
content: (8, 8, 784, 20.800001)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
inline_context: 1 lines, height=20.800001, max_width=161.21585
line[0]: rect=(8, 8, 161.21585, 20.800001) fragments=6
frag[0]: rect=(8, 9.6, 23.612333, 16) text="Text" start=false end=false
frag[1]: rect=(40.666664, 9.6, 32.74009, 16) text="styled" start=true end=false
frag[2]: rect=(73.40675, 9.6, 3.0543318, 19.2) text=(none) start=false end=false
frag[3]: rect=(76.46108, 9.6, 26.70191, 16) text="span" start=false end=true
frag[4]: rect=(112.21732, 9.6, 29.568281, 16) text="more" start=false end=false
frag[5]: rect=(144.83994, 9.6, 21.321585, 16) text="text" start=false end=false
LayoutBox node=#4 tag=anonymous box=anon
content: (0, 0, 29.720997, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: " Text "
LayoutBox node=#5 tag=span box=inline
content: (0, 0, 0, 0)
padding: 4 4 4 4
border: 2 2 2 2
margin: 0 0 0 0
LayoutBox node=#6 tag=anonymous box=anon
content: (0, 0, 62.49633, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: "styled span"
LayoutBox node=#7 tag=anonymous box=anon
content: (0, 0, 60.05286, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: " more text "