Files
rust_browser/tests/goldens/expected/122-float-with-text-content.dl.txt
Zachary D. Rowitsch 4d2b62f596 Fix three layout bugs: nobr inline display, block-in-inline split ordering, and BFC-only float avoidance
Three bugs caused Google's homepage to render incorrectly (elements at 0,0
or pushed off-screen):

1. <nobr> defaulted to display:block instead of inline, inflating float
   shrink-to-fit widths to the full viewport.

2. normalize_children ran before split_block_in_inline, wrapping inline
   elements in anonymous blocks before the splitter could find them.

3. Float avoidance applied to non-BFC blocks instead of BFC blocks
   (condition was inverted per CSS 2.1 §9.5).

Also implements CSS 2.1 Appendix E paint order: floats now paint after
normal flow block backgrounds via multi-phase rendering in the display
list builder. Positioned elements act as mini stacking contexts and
don't propagate skip_floats to their children.

Net result: +10 WPT tests passing (11 promoted, 1 minor regression).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 09:04:44 -05:00

18 lines
1.2 KiB
Plaintext

DisplayList items=16
SolidRect rect=(8, 8, 784, 19.2) color=#00ff00
Text rect=(148, 8, 27.535978, 16) text="Main" color=#000000 font_size=16
Text rect=(178.59032, 8, 42.372982, 16) text="content" color=#000000 font_size=16
Text rect=(224.01764, 8, 29.039646, 16) text="flows" color=#000000 font_size=16
Text rect=(256.1116, 8, 40.293686, 16) text="around" color=#000000 font_size=16
Text rect=(299.4596, 8, 18.126286, 16) text="the" color=#000000 font_size=16
Text rect=(320.6402, 8, 25.010277, 16) text="float" color=#000000 font_size=16
Text rect=(348.7048, 8, 32.42291, 16) text="which" color=#000000 font_size=16
Text rect=(384.18204, 8, 19.477238, 16) text="has" color=#000000 font_size=16
Text rect=(406.7136, 8, 21.321585, 16) text="text" color=#000000 font_size=16
Text rect=(431.0895, 8, 32.798824, 16) text="inside" color=#000000 font_size=16
SolidRect rect=(8, 8, 140, 39.2) color=#ff0000
Text rect=(18, 18, 23.612333, 16) text="Text" color=#ffffff font_size=16
Text rect=(44.666668, 18, 32.798824, 16) text="inside" color=#ffffff font_size=16
Text rect=(80.51982, 18, 25.010277, 16) text="float" color=#ffffff font_size=16
Text rect=(108.58443, 18, 20.546255, 16) text="box" color=#ffffff font_size=16