Add display:contents support: elements with this display value generate no box but their children participate in the parent's layout. Fix the HTML parser to create an implicit <head> for head-only elements (title, style, link, meta, script), preventing <title> text from rendering visibly in the body. This was the root cause of most WPT reftest mismatches. - Add Display::Contents variant and CSS keyword parsing - Add build_children_into() to flatten display:contents children - Fix implicit <head>/<body> insertion in HTML tree builder - Promote 53 tests known_fail→pass, demote 5 false-pass tests - Regenerate 4 golden expected outputs for shifted node IDs Net result: 156 → 204 passing WPT tests (+48). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
34 lines
1.6 KiB
Plaintext
34 lines
1.6 KiB
Plaintext
LayoutBox node=#1 tag=html box=block
|
|
content: (0, 0, 800, 35.2)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 0 0 0 0
|
|
LayoutBox node=#6 tag=body box=block
|
|
content: (8, 8, 784, 19.2)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 8 8 8 8
|
|
LayoutBox node=#7 tag=pre box=block
|
|
content: (8, 8, 784, 19.2)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 0 0 0 0
|
|
inline_context: 1 lines, height=19.2, max_width=486.34366
|
|
line[0]: rect=(8, 8, 486.34366, 19.2) fragments=10
|
|
frag[0]: rect=(8, 8, 28.193832, 16) text="This" start=false end=false
|
|
frag[1]: rect=(43.24229, 8, 42.29075, 16) text="should" start=false end=false
|
|
frag[2]: rect=(92.5815, 8, 21.145374, 16) text="not" start=false end=false
|
|
frag[3]: rect=(120.77533, 8, 56.387665, 16) text="preserve" start=false end=false
|
|
frag[4]: rect=(184.21146, 8, 70.48458, 16) text="whitespace" start=false end=false
|
|
frag[5]: rect=(261.7445, 8, 49.339207, 16) text="because" start=false end=false
|
|
frag[6]: rect=(318.13217, 8, 21.145374, 16) text="CSS" start=false end=false
|
|
frag[7]: rect=(346.32602, 8, 63.436123, 16) text="overrides" start=false end=false
|
|
frag[8]: rect=(416.8106, 8, 21.145374, 16) text="the" start=false end=false
|
|
frag[9]: rect=(445.00446, 8, 49.339207, 16) text="default" start=false end=false
|
|
LayoutBox node=#8 tag=anonymous box=anon
|
|
content: (0, 0, 486.3438, 16)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 0 0 0 0
|
|
text: "This should not pres..."
|