1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 01:57:35 +00:00

LibWeb: Account for auto-fill/fit when expanding grid lines in GFC

Named line placement now works when auto-fill or auto-fit is used to
define grid columns.
This commit is contained in:
Aliaksandr Kalenik 2024-01-05 21:32:47 +01:00 committed by Andreas Kling
parent 90142ad307
commit 9c72807976
3 changed files with 38 additions and 3 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 800x73.46875 [BFC] children: not-inline
BlockContainer <body> at (8,8) content-size 784x57.46875 children: not-inline
Box <div.grid-container> at (8,8) content-size 784x57.46875 [GFC] children: not-inline
BlockContainer <div.grid-item> at (28,28) content-size 744x17.46875 [BFC] children: inline
line 0 width: 6.34375, height: 17.46875, bottom: 17.46875, baseline: 13.53125
frag 0 from TextNode start: 0, length: 1, rect: [397,28 6.34375x17.46875]
"1"
TextNode <#text>
ViewportPaintable (Viewport<#document>) [0,0 800x600]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x73.46875]
PaintableWithLines (BlockContainer<BODY>) [8,8 784x57.46875]
PaintableBox (Box<DIV>.grid-container) [8,8 784x57.46875]
PaintableWithLines (BlockContainer<DIV>.grid-item) [8,8 784x57.46875]
TextPaintable (TextNode<#text>)