mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 14:17:34 +00:00
LibWeb: Show formatting context roots in layout tree dumps
This patch does three things: - Factors out the code that determines whether a box will create a new formatting context for its children (and which type of context) - Uses that code to mark all formatting context roots in layout tree dumps. This makes it much easier to follow along with layout since you can now see exactly where control is transferred to a new formatting context. - Rebaselines all existing layout tests, since the output format has changed slightly.
This commit is contained in:
parent
42e118e6a9
commit
968db96101
117 changed files with 905 additions and 851 deletions
|
@ -1,17 +1,17 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x348.34375 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x348.34375 [BFC] children: not-inline
|
||||
BlockContainer <body> at (8,8) content-size 784x332.34375 children: not-inline
|
||||
BlockContainer <(anonymous)> at (8,8) content-size 784x0 children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <div> at (8,8) content-size 784x0 children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <div#lefty> at (8,8) content-size 100x100 floating children: inline
|
||||
BlockContainer <div#lefty> at (8,8) content-size 100x100 floating [BFC] children: inline
|
||||
line 0 width: 10.859375, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 1, rect: [8,8 10.859375x17.46875]
|
||||
"L"
|
||||
TextNode <#text>
|
||||
TextNode <#text>
|
||||
BlockContainer <div#righty> at (742,8) content-size 50x50 floating children: inline
|
||||
BlockContainer <div#righty> at (742,8) content-size 50x50 floating [BFC] children: inline
|
||||
line 0 width: 13.6875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 1, rect: [742,8 13.6875x17.46875]
|
||||
"R"
|
||||
|
@ -21,13 +21,13 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|||
TextNode <#text>
|
||||
BlockContainer <div> at (8,8) content-size 784x0 children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <div#lefty2> at (108,8) content-size 80x80 floating children: inline
|
||||
BlockContainer <div#lefty2> at (108,8) content-size 80x80 floating [BFC] children: inline
|
||||
line 0 width: 19.671875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 2, rect: [108,8 19.671875x17.46875]
|
||||
"L2"
|
||||
TextNode <#text>
|
||||
TextNode <#text>
|
||||
BlockContainer <div#righty2> at (712,8) content-size 30x30 floating children: inline
|
||||
BlockContainer <div#righty2> at (712,8) content-size 30x30 floating [BFC] children: inline
|
||||
line 0 width: 22.5, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 2, rect: [712,8 22.5x17.46875]
|
||||
"R2"
|
||||
|
@ -37,13 +37,13 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|||
TextNode <#text>
|
||||
BlockContainer <div> at (8,8) content-size 784x0 children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <div#lefty3> at (188,8) content-size 40x40 floating children: inline
|
||||
BlockContainer <div#lefty3> at (188,8) content-size 40x40 floating [BFC] children: inline
|
||||
line 0 width: 19.953125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 2, rect: [188,8 19.953125x17.46875]
|
||||
"L3"
|
||||
TextNode <#text>
|
||||
TextNode <#text>
|
||||
BlockContainer <div#righty3> at (692,8) content-size 20x20 floating children: inline
|
||||
BlockContainer <div#righty3> at (692,8) content-size 20x20 floating [BFC] children: inline
|
||||
line 0 width: 22.78125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 2, rect: [692,8 22.78125x17.46875]
|
||||
"R3"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue