Files
rust_browser/tests/goldens/expected/052-position-relative.dl.txt
Zachary D. Rowitsch 41cd7442c8 Implement CSS 2.1 Appendix E paint order (block bg → floats → inline)
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>
2026-03-04 09:24:50 -05:00

14 lines
869 B
Plaintext

DisplayList items=12
SolidRect rect=(8, 8, 200, 110) color=#d3d3d3
SolidRect rect=(8, 8, 100, 30) color=#008000
SolidRect rect=(8, 88, 100, 30) color=#008000
Text rect=(8, 9.6, 36.88693, 16) text="Before" color=#000000 font_size=16
Text rect=(8, 89.6, 27.265785, 16) text="After" color=#000000 font_size=16
Text rect=(38.320118, 89.6, 41.033775, 16) text="(should" color=#000000 font_size=16
Text rect=(82.408226, 89.6, 13.85022, 16) text="be" color=#000000 font_size=16
Text rect=(8, 108.799995, 10.831131, 16) text="at" color=#000000 font_size=16
Text rect=(21.885464, 108.799995, 39.823788, 16) text="normal" color=#000000 font_size=16
Text rect=(8, 127.99999, 48.152718, 16) text="position)" color=#000000 font_size=16
SolidRect rect=(8, 38, 100, 50) color=#0000ff
Text rect=(8, 39.6, 43.4185, 16) text="Relative" color=#000000 font_size=16