Add phased rendering to the display list builder so that within each stacking context, block backgrounds/borders paint before floats, which paint before inline content, per CSS 2.1 Appendix E steps 3-5. Introduces a RenderPhase enum (BackgroundsOnly, InlineContentOnly, Full) threaded through render_layout_box_normal and render_non_inline_descendants. Step 6 positioned-auto descendants are collected and rendered via render_stacking_context for correct internal Appendix E ordering. Net +20 WPT tests passing (25 promoted, 5 demoted for pixel regressions). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
11 lines
645 B
Plaintext
11 lines
645 B
Plaintext
DisplayList items=9
|
|
SolidRect rect=(8, 43.2, 784, 70) color=#d3d3d3
|
|
SolidRect rect=(23, 58.2, 50, 40) color=#ff0000
|
|
SolidRect rect=(83, 58.2, 50, 40) color=#008000
|
|
Text rect=(8, 25.6, 23.612333, 16) text="Text" color=#000000 font_size=16
|
|
Text rect=(34.666664, 25.6, 36.47577, 16) text="before" color=#000000 font_size=16
|
|
Text rect=(8, 145.242, 21.321585, 16) text="text" color=#000000 font_size=16
|
|
Text rect=(32.375916, 145.242, 26.349485, 16) text="after" color=#000000 font_size=16
|
|
Text rect=(23, 59.8, 7.506608, 16) text="A" color=#000000 font_size=16
|
|
Text rect=(83, 59.8, 7.6358294, 16) text="B" color=#000000 font_size=16
|