summaryrefslogtreecommitdiff
path: root/render/layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/layout.c')
-rw-r--r--render/layout.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/render/layout.c b/render/layout.c
index 4beebaef7..f78feced1 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -835,8 +835,9 @@ bool layout_apply_minmax_height(struct box *box, struct box *container)
bool updated = false;
/* Find containing block for percentage heights */
- if (container) {
+ if (box->style->position == CSS_POSITION_ABSOLUTE) {
/* Box is absolutely positioned */
+ assert(container);
containing_block = container;
} else if (box->float_container &&
(box->style->float_ == CSS_FLOAT_LEFT ||