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>
10 lines
621 B
Plaintext
10 lines
621 B
Plaintext
DisplayList items=8
|
|
SolidRect rect=(8, 8, 784, 39.2) color=#00ff00
|
|
SolidRect rect=(28, 18, 100, 50) color=#ff0000
|
|
Text rect=(148, 19.6, 23.612333, 16) text="Text" color=#000000 font_size=16
|
|
Text rect=(174.66667, 19.6, 29.039646, 16) text="flows" color=#000000 font_size=16
|
|
Text rect=(206.76065, 19.6, 40.293686, 16) text="around" color=#000000 font_size=16
|
|
Text rect=(250.10867, 19.6, 25.010277, 16) text="float" color=#000000 font_size=16
|
|
Text rect=(278.17328, 19.6, 23.765053, 16) text="with" color=#000000 font_size=16
|
|
Text rect=(304.99265, 19.6, 39.94126, 16) text="margin" color=#000000 font_size=16
|