mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:47:35 +00:00
LibWeb: Fix table column constrainedness
Adjust implementation to reflect the CSS 2.1 definition of width.
This commit is contained in:
parent
c6cb876851
commit
29352f570a
3 changed files with 36 additions and 4 deletions
|
@ -0,0 +1,25 @@
|
|||
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 784x23.46875 children: not-inline
|
||||
TableWrapper <(anonymous)> at (8,8) content-size 37.609375x23.46875 [BFC] children: not-inline
|
||||
Box <table> at (8,8) content-size 37.609375x23.46875 table-box [TFC] children: not-inline
|
||||
Box <tbody> at (8,8) content-size 33.609375x19.46875 table-row-group children: not-inline
|
||||
Box <tr> at (10,10) content-size 33.609375x19.46875 table-row children: not-inline
|
||||
BlockContainer <td.ab> at (11,11) content-size 31.609375x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 31.609375, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 3, rect: [11,11 31.609375x17.46875]
|
||||
"A B"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (8,31.46875) content-size 784x0 children: inline
|
||||
TextNode <#text>
|
||||
|
||||
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x23.46875]
|
||||
PaintableWithLines (TableWrapper(anonymous)) [8,8 37.609375x23.46875]
|
||||
PaintableBox (Box<TABLE>) [8,8 37.609375x23.46875]
|
||||
PaintableBox (Box<TBODY>) [8,8 33.609375x19.46875] overflow: [8,8 35.609375x21.46875]
|
||||
PaintableBox (Box<TR>) [10,10 33.609375x19.46875]
|
||||
PaintableWithLines (BlockContainer<TD>.ab) [10,10 33.609375x19.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer(anonymous)) [8,31.46875 784x0]
|
|
@ -0,0 +1,5 @@
|
|||
<style>
|
||||
.ab {
|
||||
width: fit-content;
|
||||
}
|
||||
</style><table><tbody><tr><td class="ab">A B</td></tr></tbody></table>
|
Loading…
Add table
Add a link
Reference in a new issue