Files
rust_browser/tests/goldens/expected/180-absolute-shrink-to-fit.dl.txt
Zachary D. Rowitsch 1ca50684c8
All checks were successful
ci / fast (linux) (push) Successful in 7m2s
Fix float+SC invisible elements and abs-pos inline IFC rendering
Three display list / layout bugs fixed:

1. Float+stacking-context elements were invisible ("triple skip"):
   collect_stacking_participants unconditionally skipped all floats,
   even those creating stacking contexts. Now only skips simple floats.
   (CSS 2.1 Appendix E steps 2/7)

2. Abs-pos inline children inside IFCs were never laid out or rendered:
   - Layout: FormattingContext::Inline now collects abs-pos/fixed children
     into pending_absolutes for deferred layout
   - Display list: render_non_inline_descendants renders abs-pos/fixed
     inline children via render_layout_box_normal

3. Stacking context anonymous text children were double-painted:
   render_stacking_context now skips Anonymous children when the parent
   has an IFC (they're already rendered by the IFC fragment system)

Also adds guards against abs-pos inline + z-index double-render, and
promotes WPT test static-position-inline-level-absolute-in-block-level-
context-013 from known_fail to pass.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 09:30:17 -05:00

22 lines
1.0 KiB
Plaintext

DisplayList items=20
SolidRect rect=(0, 0, 400, 300) color=#eeeeee
SolidRect rect=(0, 0, 80.015625, 0) color=#cccccc
SolidRect rect=(0, 0, 80, 20) color=#999999
SolidRect rect=(0, 300, 400, 300) color=#eeeeee
SolidRect rect=(20, 300, 80.015625, 0) color=#cccccc
SolidRect rect=(20, 300, 80, 20) color=#999999
SolidRect rect=(0, 600, 400, 300) color=#eeeeee
SolidRect rect=(299.98438, 600, 80.015625, 0) color=#cccccc
SolidRect rect=(299.98438, 600, 80, 20) color=#999999
SolidRect rect=(0, 900, 400, 300) color=#eeeeee
SolidRect rect=(20, 900, 360, 0) color=#cccccc
SolidRect rect=(20, 900, 80, 20) color=#999999
SolidRect rect=(0, 1200, 400, 300) color=#eeeeee
SolidRect rect=(0, 1200, 150, 0) color=#cccccc
SolidRect rect=(0, 1200, 80, 20) color=#999999
SolidRect rect=(0, 1500, 400, 300) color=#eeeeee
SolidRect rect=(0, 1500, 80.015625, 0) color=#cccccc
SolidRect rect=(0, 1500, 80, 20) color=#999999
SolidRect rect=(0, 1800, 400, 300) color=#eeeeee
SolidRect rect=(0, 1800, 60, 40) color=#cccccc