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>
58 lines
2.3 KiB
Plaintext
58 lines
2.3 KiB
Plaintext
LayoutBox node=#1 tag=html box=block
|
|
content: (0, 0, 800, 67.2)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 0 0 0 0
|
|
LayoutBox node=#9 tag=body box=block
|
|
content: (8, 8, 784, 51.2)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 8 8 8 8
|
|
LayoutBox node=#10 tag=(anonymous-block) box=block
|
|
content: (8, 8, 784, 0)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 0 0 0 0
|
|
inline_context: 0 lines, height=0, max_width=0
|
|
LayoutBox node=#10 tag=anonymous box=anon
|
|
content: (0, 0, 3.0543318, 16)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 0 0 0 0
|
|
text: " "
|
|
LayoutBox node=#11 tag=div box=block
|
|
content: (8, 8, 200, 40)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 0 0 0 0
|
|
inline_context: 0 lines, height=0, max_width=0
|
|
LayoutBox node=#12 tag=anonymous box=anon
|
|
content: (0, 0, 3.0543318, 16)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 0 0 0 0
|
|
text: " "
|
|
LayoutBox node=#13 tag=p box=block
|
|
content: (8, 24, 784, 19.2)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 16 0 16 0
|
|
inline_context: 1 lines, height=19.2, max_width=277.28625
|
|
line[0]: rect=(208, 24, 277.28625, 19.2) fragments=10
|
|
frag[0]: rect=(208, 24, 29.908957, 16) text="Short" start=false end=false
|
|
frag[1]: rect=(240.96329, 24, 21.321585, 16) text="text" start=false end=false
|
|
frag[2]: rect=(265.3392, 24, 33.527164, 16) text="wraps" start=false end=false
|
|
frag[3]: rect=(301.9207, 24, 40.293686, 16) text="around" start=false end=false
|
|
frag[4]: rect=(345.26868, 24, 18.126286, 16) text="the" start=false end=false
|
|
frag[5]: rect=(366.44928, 24, 25.010277, 16) text="float" start=false end=false
|
|
frag[6]: rect=(394.5139, 24, 14.367107, 16) text="on" start=false end=false
|
|
frag[7]: rect=(411.9353, 24, 18.126286, 16) text="the" start=false end=false
|
|
frag[8]: rect=(433.1159, 24, 26.60793, 16) text="right" start=false end=false
|
|
frag[9]: rect=(462.77817, 24, 22.508076, 16) text="side" start=false end=false
|
|
LayoutBox node=#14 tag=anonymous box=anon
|
|
content: (0, 0, 277.2864, 16)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 0 0 0 0
|
|
text: "Short text wraps aro..."
|