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>
42 lines
2.2 KiB
Plaintext
42 lines
2.2 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=div box=block
|
|
content: (8, 8, 482.56085, 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=482.56085
|
|
line[0]: rect=(8, 8, 482.56085, 19.2) fragments=18
|
|
frag[0]: rect=(8, 8, 22.449337, 16) text="This" start=false end=false
|
|
frag[1]: rect=(33.50367, 8, 8.657856, 16) text="is" start=false end=false
|
|
frag[2]: rect=(45.21586, 8, 6.590308, 16) text="a" start=false end=false
|
|
frag[3]: rect=(54.8605, 8, 23.436123, 16) text="very" start=false end=false
|
|
frag[4]: rect=(81.35095, 8, 24.622616, 16) text="long" start=false end=false
|
|
frag[5]: rect=(109.0279, 8, 19.947138, 16) text="line" start=false end=false
|
|
frag[6]: rect=(132.02937, 8, 11.148312, 16) text="of" start=false end=false
|
|
frag[7]: rect=(146.23203, 8, 21.321585, 16) text="text" start=false end=false
|
|
frag[8]: rect=(170.60794, 8, 22.331863, 16) text="that" start=false end=false
|
|
frag[9]: rect=(195.99414, 8, 37.509544, 16) text="should" start=false end=false
|
|
frag[10]: rect=(236.55803, 8, 18.60793, 16) text="not" start=false end=false
|
|
frag[11]: rect=(258.22028, 8, 27.900146, 16) text="wrap" start=false end=false
|
|
frag[12]: rect=(289.17474, 8, 26.478708, 16) text="even" start=false end=false
|
|
frag[13]: rect=(318.70776, 8, 40.35242, 16) text="though" start=false end=false
|
|
frag[14]: rect=(362.1145, 8, 18.126286, 16) text="the" start=false end=false
|
|
frag[15]: rect=(383.2951, 8, 52.604992, 16) text="container" start=false end=false
|
|
frag[16]: rect=(438.9544, 8, 8.657856, 16) text="is" start=false end=false
|
|
frag[17]: rect=(450.6666, 8, 39.89427, 16) text="narrow" start=false end=false
|
|
LayoutBox node=#8 tag=anonymous box=anon
|
|
content: (0, 0, 482.5609, 16)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 0 0 0 0
|
|
text: "This is a very long ..."
|