mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:38:12 +00:00

Out-of-flow boxes (floating and absolutely-positioned elements) were previously collected and put in the anonymous block wrapper as well, but this actually made hit testing not able to find them, since they were breaking expectations about tree structure that hit testing relies on. After this change, we simply let out-of-flow boxes stay in their original parent, preserving the author's intended box tree structure.
26 lines
1.5 KiB
Text
26 lines
1.5 KiB
Text
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x116 [BFC] children: not-inline
|
|
BlockContainer <(anonymous)> at (0,0) content-size 800x0 children: inline
|
|
TextNode <#text>
|
|
BlockContainer <body> at (8,16) content-size 784x17.46875 children: not-inline
|
|
ImageBox <img> at (8,16) content-size 200x100 floating children: not-inline
|
|
BlockContainer <(anonymous)> at (8,16) content-size 784x0 children: inline
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
BlockContainer <p> at (8,16) content-size 784x17.46875 children: inline
|
|
line 0 width: 37.21875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
|
frag 0 from TextNode start: 0, length: 4, rect: [228,16 37.21875x17.46875]
|
|
"Test"
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (8,49.46875) content-size 784x0 children: inline
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x116]
|
|
PaintableWithLines (BlockContainer(anonymous)) [0,0 800x0]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,16 784x17.46875] overflow: [8,16 784x100]
|
|
ImagePaintable (ImageBox<IMG>) [8,16 200x100]
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,16 784x0]
|
|
PaintableWithLines (BlockContainer<P>) [8,16 784x17.46875]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,49.46875 784x0]
|