1
Fork 0
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:
Andreas Kling 2023-05-03 17:14:15 +02:00
parent 610a7603a2
commit 508927cae2
4 changed files with 30 additions and 3 deletions

View file

@ -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>