mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 04:22:28 +00:00
LibWeb/Layout: Improve grid item sizing for replaced boxes
With this change we no longer stretch "width: auto" for replaced elements and also use "width calculation rules for block-level replaced elements", like suggested by the spec.
This commit is contained in:
parent
2dd657f530
commit
1f8e7c3cca
Notes:
github-actions[bot]
2025-03-20 02:37:49 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 1f8e7c3cca
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4011
13 changed files with 83 additions and 54 deletions
11
Tests/LibWeb/Layout/expected/grid/replaced-item-2.txt
Normal file
11
Tests/LibWeb/Layout/expected/grid/replaced-item-2.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 800x116 [BFC] children: not-inline
|
||||
BlockContainer <body> at (8,8) content-size 100x100 children: not-inline
|
||||
Box <div.img-wrapper> at (8,8) content-size 100x100 [GFC] children: not-inline
|
||||
ImageBox <img> at (8,8) content-size 10x10 children: not-inline
|
||||
|
||||
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x116]
|
||||
PaintableWithLines (BlockContainer<BODY>) [8,8 100x100]
|
||||
PaintableBox (Box<DIV>.img-wrapper) [8,8 100x100]
|
||||
ImagePaintable (ImageBox<IMG>) [8,8 10x10]
|
Loading…
Add table
Add a link
Reference in a new issue