mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +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:
committed by
Alexander Kalenik
parent
fdcece2e88
commit
9098e39a43
@@ -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]
|
||||
@@ -0,0 +1,9 @@
|
||||
<style>
|
||||
div {
|
||||
background-color: crimson;
|
||||
height: 100%;
|
||||
}
|
||||
body {
|
||||
height: 50%;
|
||||
}
|
||||
</style><div></div>
|
||||
Reference in New Issue
Block a user