Files
rust_browser/tests/goldens/expected/233-table-collapsed-groove-ridge.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

115 lines
4.7 KiB
Plaintext

LayoutBox node=#1 tag=html box=block
content: (0, 0, 800, 82.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, 66.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.5, 9.5, 297, 63.4)
padding: 0 0 0 0
border: 1.5 1.5 1.5 1.5
margin: 0 0 0 0
LayoutBox node=#12 tag=tbody box=table-row-group
content: (9.5, 9.5, 297, 63.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.5, 9.5, 297, 30.2)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
LayoutBox node=#14 tag=td box=table-cell
content: (15, 15, 86.24538, 19.2)
padding: 4 4 4 4
border: 1.5 1.5 1.5 1.5
margin: 0 0 0 0
inline_context: 1 lines, height=19.2, max_width=40.211452
line[0]: rect=(15, 15, 40.211452, 19.2) fragments=1
frag[0]: rect=(15, 15, 40.211452, 16) text="Groove" start=false end=false
LayoutBox node=#15 tag=anonymous box=anon
content: (0, 15, 40.211452, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: "Groove"
LayoutBox node=#16 tag=td box=table-cell
content: (115.24538, 15, 85.50925, 19.2)
padding: 4 4 4 4
border: 1.5 1.5 1.5 1.5
margin: 0 0 0 0
inline_context: 1 lines, height=19.2, max_width=31.412628
line[0]: rect=(115.24538, 15, 31.412628, 19.2) fragments=1
frag[0]: rect=(115.24538, 15, 31.41263, 16) text="Ridge" start=false end=false
LayoutBox node=#17 tag=anonymous box=anon
content: (0, 15, 31.41263, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: "Ridge"
LayoutBox node=#18 tag=td box=table-cell
content: (214.75462, 15, 86.24538, 19.2)
padding: 4 4 4 4
border: 1.5 1.5 1.5 1.5
margin: 0 0 0 0
inline_context: 1 lines, height=19.2, max_width=37.16887
line[0]: rect=(214.75462, 15, 37.16887, 19.2) fragments=1
frag[0]: rect=(214.75462, 15, 37.168865, 16) text="Outset" start=false end=false
LayoutBox node=#19 tag=anonymous box=anon
content: (0, 15, 37.168865, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: "Outset"
LayoutBox node=#21 tag=tr box=table-row
content: (9.5, 42.7, 297, 30.2)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
LayoutBox node=#22 tag=td box=table-cell
content: (15, 48.2, 86.24538, 19.2)
padding: 4 4 4 4
border: 1.5 1.5 1.5 1.5
margin: 0 0 0 0
inline_context: 1 lines, height=19.2, max_width=27.73568
line[0]: rect=(15, 48.2, 27.73568, 19.2) fragments=1
frag[0]: rect=(15, 48.2, 27.735682, 16) text="Inset" start=false end=false
LayoutBox node=#23 tag=anonymous box=anon
content: (0, 48.2, 27.735682, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: "Inset"
LayoutBox node=#24 tag=td box=table-cell
content: (115.24538, 48.2, 85.50925, 19.2)
padding: 4 4 4 4
border: 1.5 1.5 1.5 1.5
margin: 0 0 0 0
inline_context: 1 lines, height=19.2, max_width=39.82379
line[0]: rect=(115.24538, 48.2, 39.82379, 19.2) fragments=1
frag[0]: rect=(115.24538, 48.2, 39.823788, 16) text="Double" start=false end=false
LayoutBox node=#25 tag=anonymous box=anon
content: (0, 48.2, 39.823788, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: "Double"
LayoutBox node=#26 tag=td box=table-cell
content: (214.75462, 48.2, 86.24538, 19.2)
padding: 4 4 4 4
border: 1.5 1.5 1.5 1.5
margin: 0 0 0 0
inline_context: 1 lines, height=19.2, max_width=40.211456
line[0]: rect=(214.75462, 48.2, 40.211456, 19.2) fragments=1
frag[0]: rect=(214.75462, 48.2, 40.211452, 16) text="Groove" start=false end=false
LayoutBox node=#27 tag=anonymous box=anon
content: (0, 48.2, 40.211452, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: "Groove"