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>
14 lines
928 B
Plaintext
14 lines
928 B
Plaintext
DisplayList items=12
|
|
SolidRect rect=(8, 24, 784, 19.2) color=#00ff00
|
|
Text rect=(208, 24, 29.908957, 16) text="Short" color=#000000 font_size=16
|
|
Text rect=(240.96329, 24, 21.321585, 16) text="text" color=#000000 font_size=16
|
|
Text rect=(265.3392, 24, 33.527164, 16) text="wraps" color=#000000 font_size=16
|
|
Text rect=(301.9207, 24, 40.293686, 16) text="around" color=#000000 font_size=16
|
|
Text rect=(345.26868, 24, 18.126286, 16) text="the" color=#000000 font_size=16
|
|
Text rect=(366.44928, 24, 25.010277, 16) text="float" color=#000000 font_size=16
|
|
Text rect=(394.5139, 24, 14.367107, 16) text="on" color=#000000 font_size=16
|
|
Text rect=(411.9353, 24, 18.126286, 16) text="the" color=#000000 font_size=16
|
|
Text rect=(433.1159, 24, 26.60793, 16) text="right" color=#000000 font_size=16
|
|
Text rect=(462.77817, 24, 22.508076, 16) text="side" color=#000000 font_size=16
|
|
SolidRect rect=(8, 8, 200, 40) color=#ff0000
|