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

LibWeb: Support auto-fill for rows in GFC

This change fixes the function that calculates the number of auto-fill
tracks, ensuring it uses height when applied to rows, instead of
assuming that it always operates on columns.
This commit is contained in:
Aliaksandr Kalenik 2024-01-07 10:32:40 +01:00 committed by Andreas Kling
parent 75fc51bb67
commit 903d3c92c8
4 changed files with 62 additions and 9 deletions

View file

@ -0,0 +1,30 @@
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <html> at (0,0) content-size 800x250.9375 [BFC] children: not-inline
BlockContainer <body> at (8,8) content-size 784x234.9375 children: not-inline
Box <div.grid-container> at (8,8) content-size 784x234.9375 [GFC] children: not-inline
BlockContainer <div> at (8,8) content-size 784x200 [BFC] children: inline
line 0 width: 46.71875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
frag 0 from TextNode start: 0, length: 6, rect: [8,8 46.71875x17.46875]
"Item 1"
TextNode <#text>
BlockContainer <div> at (8,208) content-size 784x17.46875 [BFC] children: inline
line 0 width: 49.1875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
frag 0 from TextNode start: 0, length: 6, rect: [8,208 49.1875x17.46875]
"Item 2"
TextNode <#text>
BlockContainer <div> at (8,225.46875) content-size 784x17.46875 [BFC] children: inline
line 0 width: 49.46875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
frag 0 from TextNode start: 0, length: 6, rect: [8,225.46875 49.46875x17.46875]
"Item 3"
TextNode <#text>
ViewportPaintable (Viewport<#document>) [0,0 800x600]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x250.9375]
PaintableWithLines (BlockContainer<BODY>) [8,8 784x234.9375]
PaintableBox (Box<DIV>.grid-container) [8,8 784x234.9375]
PaintableWithLines (BlockContainer<DIV>) [8,8 784x200]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>) [8,208 784x17.46875]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>) [8,225.46875 784x17.46875]
TextPaintable (TextNode<#text>)