mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-03 06:40:05 +00:00
LibWeb: Resolve not auto height before child box layout in BFC
It's possible to resolve box's height without doing inner layout, when computed value is not auto. Doing that fixes height resolution, when box with percentage height has containing block with percentage height. Before: - resolve used width - layout box's content - resolve height After: - resolve used width - resolve height if treated as not auto - layout box's content - resolve height if treated as auto
This commit is contained in:
parent
fdcece2e88
commit
9098e39a43
Notes:
github-actions[bot]
2024-09-27 18:26:33 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 9098e39a43
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1553
5 changed files with 74 additions and 25 deletions
|
@ -0,0 +1,9 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x600 [BFC] children: not-inline
|
||||
BlockContainer <body> at (8,8) content-size 784x300 children: not-inline
|
||||
BlockContainer <div> at (8,8) content-size 784x300 children: not-inline
|
||||
|
||||
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x300]
|
||||
PaintableWithLines (BlockContainer<DIV>) [8,8 784x300]
|
Loading…
Add table
Add a link
Reference in a new issue