Files
rust_browser/tests/goldens/expected/101-inline-block-wrapping.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

193 lines
7.5 KiB
Plaintext

LayoutBox node=#1 tag=html box=block
content: (0, 0, 800, 166.79999)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
LayoutBox node=#9 tag=body box=block
content: (8, 8, 800, 150.79999)
padding: 0 0 0 0
border: 0 0 0 0
margin: 8 8 8 8
LayoutBox node=#11 tag=div box=block
content: (8, 8, 800, 150.79999)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
inline_context: 2 lines, height=150.79999, max_width=791.38025
line[0]: rect=(8, 8, 791.38025, 75.399994) fragments=7
frag[0]: rect=(8, 23.4, 110, 60) text=(none) start=false end=false
frag[1]: rect=(121.05433, 23.4, 110, 60) text=(none) start=false end=false
frag[2]: rect=(234.10866, 23.4, 110, 60) text=(none) start=false end=false
frag[3]: rect=(347.16296, 23.4, 110, 60) text=(none) start=false end=false
frag[4]: rect=(460.2173, 23.4, 110, 60) text=(none) start=false end=false
frag[5]: rect=(573.2716, 23.4, 110, 60) text=(none) start=false end=false
frag[6]: rect=(686.3259, 23.4, 110, 60) text=(none) start=false end=false
line[1]: rect=(8, 83.399994, 113.05433, 75.399994) fragments=1
frag[0]: rect=(8, 98.799995, 110, 60) text=(none) start=false end=false
LayoutBox node=#12 tag=anonymous box=anon
content: (0, 0, 3.0543318, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: " "
LayoutBox node=#13 tag=span box=inline-block
content: (13, 28.4, 100, 50)
padding: 0 0 0 0
border: 0 0 0 0
margin: 5 5 5 5
inline_context: 1 lines, height=19.2, max_width=27.676945
line[0]: rect=(13, 28.4, 27.676945, 19.2) fragments=1
frag[0]: rect=(13, 30, 27.676945, 16) text="Box1" start=false end=false
LayoutBox node=#14 tag=anonymous box=anon
content: (0, 15.4, 27.676945, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: "Box1"
LayoutBox node=#15 tag=anonymous box=anon
content: (0, 0, 3.0543318, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: " "
LayoutBox node=#16 tag=span box=inline-block
content: (126.05433, 28.4, 100, 50)
padding: 0 0 0 0
border: 0 0 0 0
margin: 5 5 5 5
inline_context: 1 lines, height=19.2, max_width=27.676945
line[0]: rect=(126.05433, 28.4, 27.676945, 19.2) fragments=1
frag[0]: rect=(126.05433, 30, 27.676945, 16) text="Box2" start=false end=false
LayoutBox node=#17 tag=anonymous box=anon
content: (113.05433, 15.4, 27.676945, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: "Box2"
LayoutBox node=#18 tag=anonymous box=anon
content: (0, 0, 3.0543318, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: " "
LayoutBox node=#19 tag=span box=inline-block
content: (239.10866, 28.4, 100, 50)
padding: 0 0 0 0
border: 0 0 0 0
margin: 5 5 5 5
inline_context: 1 lines, height=19.2, max_width=27.676945
line[0]: rect=(239.10866, 28.4, 27.676945, 19.2) fragments=1
frag[0]: rect=(239.10866, 30, 27.676945, 16) text="Box3" start=false end=false
LayoutBox node=#20 tag=anonymous box=anon
content: (226.10866, 15.4, 27.676945, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: "Box3"
LayoutBox node=#21 tag=anonymous box=anon
content: (0, 0, 3.0543318, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: " "
LayoutBox node=#22 tag=span box=inline-block
content: (352.16296, 28.4, 100, 50)
padding: 0 0 0 0
border: 0 0 0 0
margin: 5 5 5 5
inline_context: 1 lines, height=19.2, max_width=27.676945
line[0]: rect=(352.16296, 28.4, 27.676945, 19.2) fragments=1
frag[0]: rect=(352.16296, 30, 27.676945, 16) text="Box4" start=false end=false
LayoutBox node=#23 tag=anonymous box=anon
content: (339.16296, 15.4, 27.676945, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: "Box4"
LayoutBox node=#24 tag=anonymous box=anon
content: (0, 0, 3.0543318, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: " "
LayoutBox node=#25 tag=span box=inline-block
content: (465.2173, 28.4, 100, 50)
padding: 0 0 0 0
border: 0 0 0 0
margin: 5 5 5 5
inline_context: 1 lines, height=19.2, max_width=27.676945
line[0]: rect=(465.2173, 28.4, 27.676945, 19.2) fragments=1
frag[0]: rect=(465.2173, 30, 27.676945, 16) text="Box5" start=false end=false
LayoutBox node=#26 tag=anonymous box=anon
content: (452.2173, 15.4, 27.676945, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: "Box5"
LayoutBox node=#27 tag=anonymous box=anon
content: (0, 0, 3.0543318, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: " "
LayoutBox node=#28 tag=span box=inline-block
content: (578.2716, 28.4, 100, 50)
padding: 0 0 0 0
border: 0 0 0 0
margin: 5 5 5 5
inline_context: 1 lines, height=19.2, max_width=27.676945
line[0]: rect=(578.2716, 28.4, 27.676945, 19.2) fragments=1
frag[0]: rect=(578.2716, 30, 27.676945, 16) text="Box6" start=false end=false
LayoutBox node=#29 tag=anonymous box=anon
content: (565.2716, 15.4, 27.676945, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: "Box6"
LayoutBox node=#30 tag=anonymous box=anon
content: (0, 0, 3.0543318, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: " "
LayoutBox node=#31 tag=span box=inline-block
content: (691.3259, 28.4, 100, 50)
padding: 0 0 0 0
border: 0 0 0 0
margin: 5 5 5 5
inline_context: 1 lines, height=19.2, max_width=27.676945
line[0]: rect=(691.3259, 28.4, 27.676945, 19.2) fragments=1
frag[0]: rect=(691.3259, 30, 27.676945, 16) text="Box7" start=false end=false
LayoutBox node=#32 tag=anonymous box=anon
content: (678.3259, 15.4, 27.676945, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: "Box7"
LayoutBox node=#33 tag=anonymous box=anon
content: (0, 0, 3.0543318, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: " "
LayoutBox node=#34 tag=span box=inline-block
content: (13, 103.799995, 100, 50)
padding: 0 0 0 0
border: 0 0 0 0
margin: 5 5 5 5
inline_context: 1 lines, height=19.2, max_width=27.676945
line[0]: rect=(13, 103.799995, 27.676945, 19.2) fragments=1
frag[0]: rect=(13, 105.399994, 27.676945, 16) text="Box8" start=false end=false
LayoutBox node=#35 tag=anonymous box=anon
content: (0, 90.799995, 27.676945, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: "Box8"
LayoutBox node=#36 tag=anonymous box=anon
content: (0, 0, 3.0543318, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: " "