Files
Zachary D. Rowitsch b1135fbc08 Implement display:contents and fix implicit head insertion to promote 48 WPT tests
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>
2026-02-14 10:38:11 -05:00
..