Files
rust_browser/tests/goldens/expected/234-table-fixed-collapsed.layout.txt
Zachary D. Rowitsch d5234cf546 Implement HTML5 tree builder insertion modes with code review fixes (§13.2.6)
Refactor tree_builder.rs into module directory with 7 files implementing all
23 insertion modes per WHATWG HTML §13.2.6.4 as an explicit state machine.
Includes active formatting elements list with Noah's Ark clause, scope
checking for all 5 scope types, context-sensitive fragment parsing, and
iterative token reprocessing via ProcessResult enum.

Code review fixes: fix formatting element end tag truncation bug (save
node_id before truncate), replace manual element creation in catch-all
StartTag with insert_element_maybe_self_closing, add skip_next_newline for
pre/listing/textarea per spec, add QuirksMode to Document with basic DOCTYPE
detection, refactor all 23 handlers from Token to &Token to eliminate clone
per dispatch, fix self_closing handling for pre/listing/textarea/plaintext,
improve golden test 276 fixture coverage and foster-parent test assertion.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-14 22:12:19 -04:00

89 lines
3.5 KiB
Plaintext

LayoutBox node=#1 tag=html box=block
content: (0, 0, 800, 76.4)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
LayoutBox node=#8 tag=body box=block
content: (8, 8, 784, 60.4)
padding: 0 0 0 0
border: 0 0 0 0
margin: 8 8 8 8
LayoutBox node=#10 tag=table box=table
content: (9, 9, 298, 58.4)
padding: 0 0 0 0
border: 1 1 1 1
margin: 0 0 0 0
LayoutBox node=#12 tag=tbody box=table-row-group
content: (9, 9, 298, 58.4)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
LayoutBox node=#13 tag=tr box=table-row
content: (9, 9, 298, 28.7)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
LayoutBox node=#14 tag=td box=table-cell
content: (14, 14, 90.5, 19.2)
padding: 4 4 4 4
border: 1 0.5 0.5 1
margin: 0 0 0 0
inline_context: 1 lines, height=19.2, max_width=65.844345
line[0]: rect=(14, 14, 65.844345, 19.2) fragments=2
frag[0]: rect=(14, 14, 29.192364, 16) text="Fixed" start=false end=false
frag[1]: rect=(46.246696, 14, 33.59765, 16) text="100px" start=false end=false
LayoutBox node=#15 tag=anonymous box=anon
content: (0, 14, 65.844345, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: "Fixed 100px"
LayoutBox node=#16 tag=td box=table-cell
content: (114.5, 14, 187.5, 19.2)
padding: 4 4 4 4
border: 1 1 0.5 0.5
margin: 0 0 0 0
inline_context: 1 lines, height=19.2, max_width=26.114532
line[0]: rect=(114.5, 14, 26.114532, 19.2) fragments=1
frag[0]: rect=(114.5, 14, 26.114536, 16) text="Auto" start=false end=false
LayoutBox node=#17 tag=anonymous box=anon
content: (0, 14, 26.114536, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: "Auto"
LayoutBox node=#19 tag=tr box=table-row
content: (9, 38.7, 298, 28.7)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
LayoutBox node=#20 tag=td box=table-cell
content: (14, 43.2, 90.5, 19.2)
padding: 4 4 4 4
border: 0.5 0.5 1 1
margin: 0 0 0 0
inline_context: 1 lines, height=19.2, max_width=33.42144
line[0]: rect=(14, 43.2, 33.42144, 19.2) fragments=2
frag[0]: rect=(14, 43.2, 23.647577, 16) text="Row" start=false end=false
frag[1]: rect=(40.70191, 43.2, 6.71953, 16) text="2" start=false end=false
LayoutBox node=#21 tag=anonymous box=anon
content: (0, 43.2, 33.42144, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: "Row 2"
LayoutBox node=#22 tag=td box=table-cell
content: (114.5, 43.2, 187.5, 19.2)
padding: 4 4 4 4
border: 0.5 1 1 0.5
margin: 0 0 0 0
inline_context: 1 lines, height=19.2, max_width=25.99707
line[0]: rect=(114.5, 43.2, 25.99707, 19.2) fragments=1
frag[0]: rect=(114.5, 43.2, 25.997063, 16) text="Data" start=false end=false
LayoutBox node=#23 tag=anonymous box=anon
content: (0, 43.2, 25.997063, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: "Data"