mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:27:35 +00:00
LibWeb: Resolve grid item's min-width and max-width in GFC
Now min-width and max-width properties affect resulting width of grid item instead of being ignored.
This commit is contained in:
parent
db929e0fcf
commit
802b58d7e1
5 changed files with 59 additions and 0 deletions
11
Tests/LibWeb/Layout/expected/grid/item-max-width.txt
Normal file
11
Tests/LibWeb/Layout/expected/grid/item-max-width.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 784x100 children: not-inline
|
||||
Box <div.app-privacy__cards> at (8,8) content-size 784x100 [GFC] children: not-inline
|
||||
BlockContainer <div.app-privacy__card> at (8,8) content-size 392x100 [BFC] children: not-inline
|
||||
|
||||
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x116]
|
||||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x100]
|
||||
PaintableBox (Box<DIV>.app-privacy__cards) [8,8 784x100]
|
||||
PaintableWithLines (BlockContainer<DIV>.app-privacy__card) [8,8 392x100]
|
11
Tests/LibWeb/Layout/expected/grid/item-min-width.txt
Normal file
11
Tests/LibWeb/Layout/expected/grid/item-min-width.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 784x100 children: not-inline
|
||||
Box <div.app-privacy__cards> at (8,8) content-size 784x100 [GFC] children: not-inline
|
||||
BlockContainer <div.app-privacy__card> at (8,8) content-size 392x100 [BFC] children: not-inline
|
||||
|
||||
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x116]
|
||||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x100]
|
||||
PaintableBox (Box<DIV>.app-privacy__cards) [8,8 784x100]
|
||||
PaintableWithLines (BlockContainer<DIV>.app-privacy__card) [8,8 392x100]
|
Loading…
Add table
Add a link
Reference in a new issue