From 775fd9f989a15c5ee7ef2b8e2c41c4f7adbc2ed8 Mon Sep 17 00:00:00 2001 From: bptato Date: Fri, 1 Nov 2024 16:20:09 +0100 Subject: layout: simplify a bit, fix some inline float bugs * simplify "positioned" value calculation: - don't include it in ResolvedSizes, since it's unused in most layouts - resolvePositioned for both absolute and relative positioning - use "size" instead of "space" for absolute positioning - include parent width in layout so that renderdocument does not have to account for it * return bottom margins as regular return values instead of var * fix child bottom margins being discarded in inline floats * fix inline float not including the parent block position in its BFC position --- test/layout/inline-float-collapsed-child-margin.expected | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 test/layout/inline-float-collapsed-child-margin.expected (limited to 'test/layout/inline-float-collapsed-child-margin.expected') diff --git a/test/layout/inline-float-collapsed-child-margin.expected b/test/layout/inline-float-collapsed-child-margin.expected new file mode 100644 index 00000000..3e0ef9fa --- /dev/null +++ b/test/layout/inline-float-collapsed-child-margin.expected @@ -0,0 +1,3 @@ +test right +next +next -- cgit