mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 18:37:34 +00:00
LibWeb: Call prepare_for_replaced_layout() on replaced boxes in GFC
We need to call prepare_for_replaced_layout() on grid items to populate their natural sizes and aspect ration.
This commit is contained in:
parent
a559dca816
commit
549dee4db1
3 changed files with 28 additions and 0 deletions
11
Tests/LibWeb/Layout/expected/grid/replaced-item-1.txt
Normal file
11
Tests/LibWeb/Layout/expected/grid/replaced-item-1.txt
Normal file
|
@ -0,0 +1,11 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x516 [BFC] children: not-inline
|
||||
BlockContainer <body> at (8,8) content-size 784x500 children: not-inline
|
||||
Box <div.grid> at (8,8) content-size 100x500 [GFC] children: not-inline
|
||||
ImageBox <img> at (8,8) content-size 500x500 children: not-inline
|
||||
|
||||
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x516]
|
||||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x500]
|
||||
PaintableBox (Box<DIV>.grid) [8,8 100x500] overflow: [8,8 500x500]
|
||||
ImagePaintable (ImageBox<IMG>) [8,8 500x500]
|
Loading…
Add table
Add a link
Reference in a new issue