mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:47:35 +00:00
LibWeb: Set children of button layout box to be non-inline
When modifying the button layout during tree building to use flex for vertical alignment, let's explicitly set the button box's children to be non-inline. It doesn't make sense to layout the button as an IFC when its only child is a flex container.
This commit is contained in:
parent
38d9c4d19c
commit
0160d921e9
6 changed files with 28 additions and 37 deletions
|
@ -1,11 +1,9 @@
|
|||
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 784x21.46875 children: inline
|
||||
line 0 width: 47.21875, height: 21.46875, bottom: 21.46875, baseline: 15.53125
|
||||
line 0 width: 47.21875, height: 21.46875, bottom: 21.46875, baseline: 13.53125
|
||||
frag 0 from BlockContainer start: 0, length: 0, rect: [13,10 37.21875x17.46875]
|
||||
BlockContainer <button> at (13,10) content-size 37.21875x17.46875 inline-block [BFC] children: inline
|
||||
line 0 width: 37.21875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from BlockContainer start: 0, length: 0, rect: [13,10 37.21875x17.46875]
|
||||
BlockContainer <button> at (13,10) content-size 37.21875x17.46875 inline-block [BFC] children: not-inline
|
||||
BlockContainer <(anonymous)> at (13,10) content-size 37.21875x17.46875 flex-container(column) [FFC] children: not-inline
|
||||
BlockContainer <(anonymous)> at (13,10) content-size 37.21875x17.46875 flex-item [BFC] children: inline
|
||||
line 0 width: 37.21875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue