mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 02:27:19 +02:00
Using flex layout inside button solves the issue with wrongly calculated height when it has: pseudo element and whitespaces inside. Also using flex instead of a table layout allows for the same vertical alignment but with fewer layout nodes: a flex container and anonymous wrapper for content instead of a table wrapper, table, row, and cell.
41 lines
2.7 KiB
Plaintext
41 lines
2.7 KiB
Plaintext
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 784x47.671875 children: inline
|
|
line 0 width: 61.1875, height: 47.671875, bottom: 47.671875, baseline: 35.828125
|
|
frag 0 from BlockContainer start: 0, length: 0, rect: [8,8 61.1875x47.671875]
|
|
BlockContainer <div.ib> at (8,8) content-size 61.1875x47.671875 inline-block [BFC] children: inline
|
|
line 0 width: 61.1875, height: 47.671875, bottom: 47.671875, baseline: 35.828125
|
|
frag 0 from BlockContainer start: 0, length: 0, rect: [9,26 17.828125x21.84375]
|
|
frag 1 from TextNode start: 0, length: 1, rect: [28,30 8x17.46875]
|
|
" "
|
|
frag 2 from BlockContainer start: 0, length: 0, rect: [41,10 23.359375x43.671875]
|
|
TextNode <#text>
|
|
BlockContainer <div.label> at (9,26) content-size 17.828125x21.84375 inline-block [BFC] children: inline
|
|
line 0 width: 17.828125, height: 21.84375, bottom: 21.84375, baseline: 16.921875
|
|
frag 0 from TextNode start: 0, length: 1, rect: [9,26 17.828125x21.84375]
|
|
"A"
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
BlockContainer <button> at (41,10) content-size 23.359375x43.671875 inline-block [BFC] children: inline
|
|
line 0 width: 23.359375, height: 43.671875, bottom: 43.671875, baseline: 33.828125
|
|
frag 0 from BlockContainer start: 0, length: 0, rect: [41,10 23.359375x43.671875]
|
|
BlockContainer <(anonymous)> at (41,10) content-size 23.359375x43.671875 flex-container(column) [FFC] children: not-inline
|
|
BlockContainer <(anonymous)> at (41,10) content-size 23.359375x43.671875 flex-item [BFC] children: inline
|
|
line 0 width: 23.359375, height: 43.671875, bottom: 43.671875, baseline: 33.828125
|
|
frag 0 from TextNode start: 0, length: 1, rect: [41,10 23.359375x43.671875]
|
|
"B"
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x47.671875]
|
|
PaintableWithLines (BlockContainer<DIV>.ib) [8,8 61.1875x47.671875]
|
|
PaintableWithLines (BlockContainer<DIV>.label) [8,25 19.828125x23.84375]
|
|
TextPaintable (TextNode<#text>)
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<BUTTON>) [36,8 33.359375x47.671875]
|
|
PaintableWithLines (BlockContainer(anonymous)) [41,10 23.359375x43.671875]
|
|
PaintableWithLines (BlockContainer(anonymous)) [41,10 23.359375x43.671875]
|
|
TextPaintable (TextNode<#text>)
|