mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 22:07:35 +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,14 +1,14 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html.js> at (0,0) content-size 800x200 children: not-inline
|
||||
BlockContainer <html.js> at (0,0) content-size 800x200 [BFC] children: not-inline
|
||||
BlockContainer <body> at (0,0) content-size 800x50 children: not-inline
|
||||
BlockContainer <div#page> at (50,50) content-size 750x0 children: not-inline
|
||||
BlockContainer <div#content_box> at (50,50) content-size 400x150 floating children: inline
|
||||
BlockContainer <article.first> at (50,50) content-size 300x100 floating children: inline
|
||||
BlockContainer <div#content_box> at (50,50) content-size 400x150 floating [BFC] children: inline
|
||||
BlockContainer <article.first> at (50,50) content-size 300x100 floating [BFC] children: inline
|
||||
line 0 width: 36.03125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 5, rect: [50,50 36.03125x17.46875]
|
||||
"first"
|
||||
TextNode <#text>
|
||||
BlockContainer <article.second> at (50,150) content-size 200x50 floating children: inline
|
||||
BlockContainer <article.second> at (50,150) content-size 200x50 floating [BFC] children: inline
|
||||
line 0 width: 54.78125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 6, rect: [50,150 54.78125x17.46875]
|
||||
"second"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue