mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
Previously, a table with `width: 100%` and `margin: auto` whose content was narrower than the viewport would be centered based on content width rather than filling the containing block. Resizing the viewport wider than the content would shift the table progressively further to the right. Co-authored-by: Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
24 lines
1.6 KiB
Plaintext
24 lines
1.6 KiB
Plaintext
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
|
|
BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 120 0+0+0] [BFC] children: not-inline
|
|
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 104 0+0+8] children: not-inline
|
|
BlockContainer <center> at [8,8] [0+0+0 784 0+0+0] [0+0+0 104 0+0+0] children: not-inline
|
|
TableWrapper <(anonymous)> at [204,8] [0+0+0 392 0+0+392] [0+0+0 104 0+0+0] [BFC] children: not-inline
|
|
Box <table> at [204,8] table-box [0+0+0 392 0+0+196] [0+0+0 104 0+0+0] [TFC] children: not-inline
|
|
Box <tbody> at [206,10] table-row-group [0+0+0 388 0+0+0] [0+0+0 100 0+0+0] children: not-inline
|
|
Box <tr> at [206,10] table-row [0+0+0 388 0+0+0] [0+0+0 100 0+0+0] children: not-inline
|
|
BlockContainer <td> at [207,60] table-cell [0+0+1 386 1+0+0] [0+0+50 0 50+0+0] [BFC] children: inline
|
|
TextNode <#text> (not painted)
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x120]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x104]
|
|
PaintableWithLines (BlockContainer<CENTER>) [8,8 784x104]
|
|
PaintableWithLines (TableWrapper(anonymous)) [204,8 392x104]
|
|
PaintableBox (Box<TABLE>) [204,8 392x104]
|
|
PaintableBox (Box<TBODY>) [206,10 388x100]
|
|
PaintableBox (Box<TR>) [206,10 388x100]
|
|
PaintableWithLines (BlockContainer<TD>) [206,10 388x100]
|
|
|
|
SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)
|
|
SC for BlockContainer<HTML> [0,0 800x120] [children: 0] (z-index: auto)
|