mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:17:35 +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.6 KiB
Text
26 lines
1.6 KiB
Text
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x600 [BFC] children: not-inline
|
|
BlockContainer <body> at (8,8) content-size 784x100 children: not-inline
|
|
BlockContainer <div> at (8,8) content-size 784x100 children: not-inline
|
|
BlockContainer <div.square.white> at (8,8) content-size 100x100 floating [BFC] children: not-inline
|
|
BlockContainer <(anonymous)> at (8,8) content-size 784x0 children: inline
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
BlockContainer <div.clearfix> at (8,108) content-size 784x0 children: not-inline
|
|
BlockContainer <(anonymous)> at (8,108) content-size 784x0 children: inline
|
|
TextNode <#text>
|
|
BlockContainer <div.square.black> at (8,108) content-size 49x49 floating [BFC] children: not-inline
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (8,108) content-size 784x0 children: inline
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x100]
|
|
PaintableWithLines (BlockContainer<DIV>) [8,8 784x100]
|
|
PaintableWithLines (BlockContainer<DIV>.square.white) [8,8 100x100]
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,8 784x0]
|
|
PaintableWithLines (BlockContainer<DIV>.clearfix) [8,108 784x0]
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,108 784x0]
|
|
PaintableWithLines (BlockContainer<DIV>.square.black) [8,108 49x49]
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,108 784x0]
|