Files
rust_browser/tests/goldens/expected/054-position-absolute.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

15 lines
961 B
Plaintext

DisplayList items=13
SolidRect rect=(8, 8, 300, 200) color=#d3d3d3
SolidRect rect=(8, 8, 100, 30) color=#008000
SolidRect rect=(8, 38, 100, 30) color=#008000
Text rect=(8, 9.6, 38.43759, 16) text="In-flow" color=#000000 font_size=16
Text rect=(49.491924, 9.6, 36.42878, 16) text="sibling" color=#000000 font_size=16
Text rect=(8, 39.6, 44.851685, 16) text="Another" color=#000000 font_size=16
Text rect=(55.906017, 39.6, 36.42878, 16) text="sibling" color=#000000 font_size=16
Text rect=(8, 58.800003, 45.2511, 16) text="(ignores" color=#000000 font_size=16
Text rect=(56.30543, 58.800003, 51.230537, 16) text="absolute)" color=#000000 font_size=16
SolidRect rect=(20, 10, 80, 50) color=#0000ff
Text rect=(20, 11.6, 48.62261, 16) text="Absolute" color=#000000 font_size=16
Text rect=(71.67693, 11.6, 11.348018, 16) text="to" color=#000000 font_size=16
Text rect=(20, 30.800001, 48.28194, 16) text="viewport" color=#000000 font_size=16