Root element now creates a stacking context unconditionally. Refactored display list builder to correctly bucket stacking participants into three groups (negative/zero/positive z-index) per Appendix E steps 2/6/7. Fixed z-index:0 elements painting at step 7 instead of step 6, and descendant stacking contexts being trapped inside positioned z-index:auto ancestors instead of participating in the parent stacking context. Added StackingBuckets struct, unified step-6 rendering with tree-order merge by node_id, and 7 unit tests for creates_stacking_context(). Added 6 golden tests (213-218) and 4 integration tests asserting paint-order invariants programmatically. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
11 lines
582 B
Plaintext
11 lines
582 B
Plaintext
DisplayList items=9
|
|
SolidRect rect=(8, 8, 200, 200) color=#d3d3d3
|
|
SolidRect rect=(8, 8, 180, 30) color=#ffff00
|
|
SolidRect rect=(8, 68, 180, 30) color=#ffff00
|
|
Text rect=(8, 9.6, 48.211456, 16) text="Normal1" color=#000000 font_size=16
|
|
Text rect=(8, 69.6, 48.211456, 16) text="Normal2" color=#000000 font_size=16
|
|
SolidRect rect=(8, 38, 180, 30) color=#0000ff
|
|
Text rect=(8, 39.6, 65.080765, 16) text="Positioned1" color=#000000 font_size=16
|
|
SolidRect rect=(8, 98, 180, 30) color=#0000ff
|
|
Text rect=(8, 99.6, 65.080765, 16) text="Positioned2" color=#000000 font_size=16
|