ladybird/Tests/LibWeb/Layout/expected/grid/placement-7.txt
Aliaksandr Kalenik 4d8bc16812 LibWeb: Respect "auto flow" property in grid layout
Before this change, we only considering `grid-auto-flow` to determine
whether a row or column should be added when there was not enough space
in the implicit grid to fit the next unplaced item.

Now, we also choose the direction in which the "auto placement cursor"
is moved, based on the auto flow property.
2024-03-06 07:23:27 +01:00

33 lines
1.9 KiB
Text

Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <html> at (0,0) content-size 800x216 [BFC] children: not-inline
BlockContainer <body> at (8,8) content-size 784x200 children: not-inline
Box <div.grid> at (8,8) content-size 784x200 [GFC] children: not-inline
BlockContainer <div#a> at (8,8) content-size 100x100 [BFC] children: inline
frag 0 from TextNode start: 0, length: 1, rect: [8,8 6.34375x17] baseline: 13.296875
"1"
TextNode <#text>
BlockContainer <div#b> at (108,8) content-size 387.453125x200 [BFC] children: inline
frag 0 from TextNode start: 0, length: 1, rect: [108,8 8.8125x17] baseline: 13.296875
"2"
TextNode <#text>
BlockContainer <div#c> at (495.453125,8) content-size 296.546875x100 [BFC] children: inline
frag 0 from TextNode start: 0, length: 1, rect: [495.453125,8 9.09375x17] baseline: 13.296875
"3"
TextNode <#text>
BlockContainer <div#d> at (495.453125,108) content-size 296.546875x100 [BFC] children: inline
frag 0 from TextNode start: 0, length: 1, rect: [495.453125,108 7.75x17] baseline: 13.296875
"4"
TextNode <#text>
ViewportPaintable (Viewport<#document>) [0,0 800x600]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x216]
PaintableWithLines (BlockContainer<BODY>) [8,8 784x200]
PaintableBox (Box<DIV>.grid) [8,8 784x200]
PaintableWithLines (BlockContainer<DIV>#a) [8,8 100x100]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>#b) [108,8 387.453125x200]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>#c) [495.453125,8 296.546875x100]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>#d) [495.453125,108 296.546875x100]
TextPaintable (TextNode<#text>)