mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 21:27:36 +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,18 +1,18 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x70 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x70 [BFC] children: not-inline
|
||||
BlockContainer <body> at (8,8) content-size 784x54 children: not-inline
|
||||
Box <div.container> at (9,9) content-size 600x52 flex-container(row) children: not-inline
|
||||
BlockContainer <div.box> at (20,10) content-size 150x50 flex-item children: inline
|
||||
Box <div.container> at (9,9) content-size 600x52 flex-container(row) [FFC] children: not-inline
|
||||
BlockContainer <div.box> at (20,10) content-size 150x50 flex-item [BFC] children: inline
|
||||
line 0 width: 86.359375, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 11, rect: [20,10 86.359375x17.46875]
|
||||
"left margin"
|
||||
TextNode <#text>
|
||||
BlockContainer <div.box> at (172,10) content-size 150x50 flex-item children: inline
|
||||
BlockContainer <div.box> at (172,10) content-size 150x50 flex-item [BFC] children: inline
|
||||
line 0 width: 141.28125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 18, rect: [172,10 141.28125x17.46875]
|
||||
"follow immediately"
|
||||
TextNode <#text>
|
||||
BlockContainer <div.box> at (458,10) content-size 150x50 flex-item children: inline
|
||||
BlockContainer <div.box> at (458,10) content-size 150x50 flex-item [BFC] children: inline
|
||||
line 0 width: 138.296875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 17, rect: [458,10 138.296875x17.46875]
|
||||
"over at the right"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue