mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 18:57:35 +00:00
LibWeb: Take specified height into account for automatic table height
Track table grid height stretched to the specified height and use it to set the final box height in TFC. Fixes #19563.
This commit is contained in:
parent
04a5196a5d
commit
8e52d1125d
4 changed files with 31 additions and 9 deletions
|
@ -0,0 +1,11 @@
|
|||
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 784x122 children: not-inline
|
||||
TableWrapper <(anonymous)> at (8,8) content-size 0x122 [BFC] children: not-inline
|
||||
Box <table> at (19,19) content-size 0x100 table-box [TFC] children: not-inline
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
Box <tbody> at (19,19) content-size 0x0 table-row-group children: not-inline
|
||||
Box <tr> at (21,31) content-size 0x0 table-row children: not-inline
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
10
Tests/LibWeb/Layout/input/table/stretch-to-fixed-height.html
Normal file
10
Tests/LibWeb/Layout/input/table/stretch-to-fixed-height.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
<style>
|
||||
table {
|
||||
border: 1px solid black;
|
||||
height: 100px;
|
||||
padding: 10px;
|
||||
}
|
||||
</style>
|
||||
<table>
|
||||
<tr></tr>
|
||||
</table>
|
Loading…
Add table
Add a link
Reference in a new issue