mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:47:34 +00:00
LibWeb: Take floats into account when measuring automatic width of IFC
When there are floats present inside an IFC, we must coordinate with the parent BFC to calculate the automatic width of the IFC's block box. This is because the IFC is not directly aware of floats. Only the BFC knows enough about them to account for them in automatic sizing.
This commit is contained in:
parent
610a7603a2
commit
508927cae2
4 changed files with 30 additions and 3 deletions
|
@ -0,0 +1,6 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x0 [BFC] children: not-inline
|
||||
BlockContainer <body> at (8,8) content-size 140x100 positioned [BFC] children: not-inline
|
||||
BlockContainer <div.black> at (58,58) content-size 40x0 children: inline
|
||||
BlockContainer <div.green> at (78,78) content-size 0x0 floating [BFC] children: not-inline
|
||||
TextNode <#text>
|
Loading…
Add table
Add a link
Reference in a new issue