Files
rust_browser/tests/goldens/expected/051-child-vs-descendant.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

25 lines
1.8 KiB
Plaintext

DisplayList items=23
SolidRect rect=(8, 8, 784, 19.2) color=#0000ff
SolidRect rect=(8, 46.4, 784, 19.200005) color=#008000
SolidRect rect=(8, 65.600006, 784, 19.199997) color=#008000
Text rect=(8, 9.6, 32.963287, 16) text="Direct" color=#000000 font_size=16
Text rect=(44.01762, 9.6, 26.18502, 16) text="child" color=#000000 font_size=16
Text rect=(73.256966, 9.6, 41.033775, 16) text="(should" color=#000000 font_size=16
Text rect=(117.34507, 9.6, 13.85022, 16) text="be" color=#000000 font_size=16
Text rect=(134.24962, 9.6, 27.6652, 16) text="blue)" color=#000000 font_size=16
Text rect=(8, 28.800001, 24.634361, 16) text="NOT" color=#000000 font_size=16
Text rect=(35.688694, 28.800001, 6.590308, 16) text="a" color=#000000 font_size=16
Text rect=(45.333336, 28.800001, 31.612335, 16) text="direct" color=#000000 font_size=16
Text rect=(80, 28.800001, 26.18502, 16) text="child" color=#000000 font_size=16
Text rect=(109.23935, 28.800001, 11.148312, 16) text="of" color=#000000 font_size=16
Text rect=(123.44199, 28.800001, 39.94126, 16) text=".parent" color=#000000 font_size=16
Text rect=(166.43759, 28.800001, 17.891336, 16) text="(no" color=#000000 font_size=16
Text rect=(187.38327, 28.800001, 27.6652, 16) text="blue)" color=#000000 font_size=16
Text rect=(8, 48, 32.963287, 16) text="Direct" color=#000000 font_size=16
Text rect=(44.01762, 48, 64.317184, 16) text="descendant" color=#000000 font_size=16
Text rect=(111.38914, 48, 39.635826, 16) text="(green)" color=#000000 font_size=16
Text rect=(8, 67.200005, 39.27166, 16) text="Nested" color=#000000 font_size=16
Text rect=(50.325993, 67.200005, 64.317184, 16) text="descendant" color=#000000 font_size=16
Text rect=(117.6975, 67.200005, 25.879587, 16) text="(also" color=#000000 font_size=16
Text rect=(146.63142, 67.200005, 36.111603, 16) text="green)" color=#000000 font_size=16