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:
parent
75fc51bb67
commit
903d3c92c8
4 changed files with 62 additions and 9 deletions
30
Tests/LibWeb/Layout/expected/grid/auto-fill-rows.txt
Normal file
30
Tests/LibWeb/Layout/expected/grid/auto-fill-rows.txt
Normal 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>)
|
Loading…
Add table
Add a link
Reference in a new issue