1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 22:37:35 +00:00

LibWeb: Consider colgroups while calculating table grid size

We should take in account <col> elements in column groups while finding
number of columns in a table.
This commit is contained in:
Aliaksandr Kalenik 2023-11-04 04:08:59 +01:00 committed by Andreas Kling
parent 6d31d81309
commit 2660bbb94f
4 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,16 @@
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 784x2 children: not-inline
TableWrapper <(anonymous)> at (8,8) content-size 6x2 [BFC] children: not-inline
Box <table> at (8,8) content-size 6x2 table-box [TFC] children: not-inline
BlockContainer <colgroup#my-group> (not painted) table-column-group children: not-inline
BlockContainer <col> (not painted) children: not-inline
BlockContainer <col> (not painted) children: not-inline
Box <tbody> at (8,8) content-size 0x0 table-row-group children: not-inline
ViewportPaintable (Viewport<#document>) [0,0 800x600]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
PaintableWithLines (BlockContainer<BODY>) [8,8 784x2]
PaintableWithLines (TableWrapper(anonymous)) [8,8 6x2]
PaintableBox (Box<TABLE>) [8,8 6x2]
PaintableBox (Box<TBODY>) [8,8 0x0]